File tree 1 file changed +3
-3
lines changed
library/std/src/os/unix/net
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ impl SocketAddr {
145
145
/// use std::path::Path;
146
146
///
147
147
/// # fn main() -> std::io::Result<()> {
148
- /// let address = SocketAddr::from_path ("/path/to/socket")?;
148
+ /// let address = SocketAddr::from_pathname ("/path/to/socket")?;
149
149
/// assert_eq!(address.as_pathname(), Some(Path::new("/path/to/socket")));
150
150
/// # Ok(())
151
151
/// # }
@@ -157,10 +157,10 @@ impl SocketAddr {
157
157
/// #![feature(unix_socket_creation)]
158
158
/// use std::os::unix::net::SocketAddr;
159
159
///
160
- /// assert!(SocketAddr::from_path ("/path/with/\0/bytes").is_err());
160
+ /// assert!(SocketAddr::from_pathname ("/path/with/\0/bytes").is_err());
161
161
/// ```
162
162
#[ unstable( feature = "unix_socket_creation" , issue = "93423" ) ]
163
- pub fn from_path < P > ( path : P ) -> io:: Result < SocketAddr >
163
+ pub fn from_pathname < P > ( path : P ) -> io:: Result < SocketAddr >
164
164
where
165
165
P : AsRef < Path > ,
166
166
{
You can’t perform that action at this time.
0 commit comments