Skip to content

Commit b5f45a0

Browse files
de-vri-esThomasdezeeuw
authored andcommitted
Fix typos.
1 parent 57316ab commit b5f45a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ impl std::fmt::Debug for RecvFlags {
290290
dbg.field("is_end_of_record", &self.is_end_of_record());
291291
#[cfg(unix)]
292292
dbg.field("is_out_of_band", &self.is_out_of_band());
293-
dbg.field("is_trunctated", &self.is_trunctated());
293+
dbg.field("is_truncated", &self.is_trunctated());
294294
dbg.finish()
295295
}
296296
}

src/socket.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ impl Socket {
266266

267267
/// Identical to [`recv_with_flags`] but reads into a slice of buffers.
268268
///
269-
/// In addition to the number of bytes read, this function return the flags for the received message.
269+
/// In addition to the number of bytes read, this function returns the flags for the received message.
270270
/// See [`RecvFlags`] for more information about the flags.
271271
///
272272
/// [`recv_with_flags`]: #method.recv_with_flags
@@ -321,7 +321,7 @@ impl Socket {
321321

322322
/// Identical to [`recv_from_with_flags`] but reads into a slice of buffers.
323323
///
324-
/// In addition to the number of bytes read, this function return the flags for the received message.
324+
/// In addition to the number of bytes read, this function returns the flags for the received message.
325325
/// See [`RecvFlags`] for more information about the flags.
326326
///
327327
/// [`recv_from_with_flags`]: #method.recv_from_with_flags

0 commit comments

Comments
 (0)