Skip to content

Commit 464f531

Browse files
authored
Fix typo in safety comments
1 parent 6e44260 commit 464f531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl Compress {
362362
output: &mut Vec<u8>,
363363
flush: FlushCompress,
364364
) -> Result<Status, CompressError> {
365-
// SAFETY: bytes_written is the number of bytes writte into `out`
365+
// SAFETY: bytes_written is the number of bytes written into `out`
366366
unsafe {
367367
write_to_spare_capacity_of_vec(output, |out| {
368368
let before = self.total_out();
@@ -499,7 +499,7 @@ impl Decompress {
499499
output: &mut Vec<u8>,
500500
flush: FlushDecompress,
501501
) -> Result<Status, DecompressError> {
502-
// SAFETY: bytes_written is the number of bytes writte into `out`
502+
// SAFETY: bytes_written is the number of bytes written into `out`
503503
unsafe {
504504
write_to_spare_capacity_of_vec(output, |out| {
505505
let before = self.total_out();

0 commit comments

Comments
 (0)