ToSocketAddrs: fix typo
This commit is contained in:
parent
e0883a2a6c
commit
0f12a2c4ad
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue