chore: remove repetitive words (#7206)

Signed-off-by: availhang <mayangang@outlook.com>
This commit is contained in:
George Ma
2024-03-25 23:43:02 +08:00
committed by GitHub
parent 2713142308
commit d837ce0686
8 changed files with 8 additions and 8 deletions

View File

@@ -782,7 +782,7 @@ where
}
}
// NB: don't use `buf.is_empty()` here; it is from the
// `impl Deref for Slice { Target = [u8] }`; the the &[u8]
// `impl Deref for Slice { Target = [u8] }`; the &[u8]
// returned by it only covers the initialized portion of `buf`.
// Whereas we're interested in ensuring that we filled the entire
// buffer that the user passed in.