about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-04-04 21:54:59 +0200
committerGitHub <noreply@github.com>2025-04-04 21:54:59 +0200
commitfa7d66eaaa39491d9b99c3873fd157eac1edc4f3 (patch)
tree2004b69538d9bcf45d7a077fa454a0e7aa4fca67 /library/std/src
parente3c73c7a2f520c04b7e9fde94e34d7875a4ff530 (diff)
parent0f12a2c4ad6ebc7f74e682be819f0d61d8d27c57 (diff)
downloadrust-fa7d66eaaa39491d9b99c3873fd157eac1edc4f3.tar.gz
rust-fa7d66eaaa39491d9b99c3873fd157eac1edc4f3.zip
Rollup merge of #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.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/net/socket_addr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/net/socket_addr.rs b/library/std/src/net/socket_addr.rs
index 4c8905c0d46..41e623e79ce 100644
--- a/library/std/src/net/socket_addr.rs
+++ b/library/std/src/net/socket_addr.rs
@@ -101,7 +101,7 @@ use crate::{io, iter, option, slice, vec};
 /// assert_eq!(err.kind(), io::ErrorKind::InvalidInput);
 /// ```
 ///
-/// [`TcpStream::connect`] is an example of an function that utilizes
+/// [`TcpStream::connect`] is an example of a function that utilizes
 /// `ToSocketAddrs` as a trait bound on its parameter in order to accept
 /// different types:
 ///