diff options
| author | Ralf Jung <post@ralfj.de> | 2025-04-04 14:47:04 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-04-04 14:47:04 +0200 |
| commit | 0f12a2c4ad6ebc7f74e682be819f0d61d8d27c57 (patch) | |
| tree | b41a35d1905a295becbcb1b7308364e5c40263c8 | |
| parent | e0883a2a6c8e4afcb6e26a182885f687ba63a7f5 (diff) | |
| download | rust-0f12a2c4ad6ebc7f74e682be819f0d61d8d27c57.tar.gz rust-0f12a2c4ad6ebc7f74e682be819f0d61d8d27c57.zip | |
ToSocketAddrs: fix typo
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs | 2 | ||||
| -rw-r--r-- | library/std/src/net/socket_addr.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs index fddddf404db..56cc4327585 100644 --- a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs @@ -969,7 +969,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> { } }; - // If we can detect the expression to be an function or method call where the closure was + // If we can detect the expression to be a function or method call where the closure was // an argument, we point at the function or method definition argument... if let Some((callee_def_id, call_span, call_args)) = get_call_details() { let arg_pos = call_args 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: /// |
