Skip to content

Commit dc53745

Browse files
authored
Rollup merge of rust-lang#139366 - RalfJung:ToSocketAddrs, r=jieyouxu
ToSocketAddrs: fix typo It's "a function", never "an function". I noticed the same typo somewhere in the compiler sources so figured I'd fix it there as well.
2 parents 35672c7 + f2e2b56 commit dc53745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/net/socket_addr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ use crate::{io, iter, option, slice, vec};
101101
/// assert_eq!(err.kind(), io::ErrorKind::InvalidInput);
102102
/// ```
103103
///
104-
/// [`TcpStream::connect`] is an example of an function that utilizes
104+
/// [`TcpStream::connect`] is an example of a function that utilizes
105105
/// `ToSocketAddrs` as a trait bound on its parameter in order to accept
106106
/// different types:
107107
///

0 commit comments

Comments
 (0)