Skip to content

Commit fa7d66e

Browse files
authored
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.
2 parents e3c73c7 + 0f12a2c commit fa7d66e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
969969
}
970970
};
971971

972-
// If we can detect the expression to be an function or method call where the closure was
972+
// If we can detect the expression to be a function or method call where the closure was
973973
// an argument, we point at the function or method definition argument...
974974
if let Some((callee_def_id, call_span, call_args)) = get_call_details() {
975975
let arg_pos = call_args

library/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)