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.
This commit is contained in:
Matthias Krüger 2025-04-04 21:54:59 +02:00 committed by GitHub
commit fa7d66eaaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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... // an argument, we point at the function or method definition argument...
if let Some((callee_def_id, call_span, call_args)) = get_call_details() { if let Some((callee_def_id, call_span, call_args)) = get_call_details() {
let arg_pos = call_args let arg_pos = call_args

View file

@ -101,7 +101,7 @@ use crate::{io, iter, option, slice, vec};
/// assert_eq!(err.kind(), io::ErrorKind::InvalidInput); /// 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 /// `ToSocketAddrs` as a trait bound on its parameter in order to accept
/// different types: /// different types:
/// ///