Parcourir la source

Merge pull request #831 from oslfmt/main

fix small typo
Dario Nieuwenhuis il y a 1 an
Parent
commit
d3cea95ccc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/wire/tcp.rs

+ 1 - 1
src/wire/tcp.rs

@@ -553,7 +553,7 @@ impl<T: AsRef<[u8]> + AsMut<[u8]>> Packet<T> {
         NetworkEndian::write_u16(&mut data[field::FLAGS], raw)
     }
 
-    /// Return the window size field.
+    /// Set the window size field.
     #[inline]
     pub fn set_window_len(&mut self, value: u16) {
         let data = self.buffer.as_mut();