Skip to content

Commit 15d904f

Browse files
author
Nick Hamann
committed
---
yaml --- r: 207835 b: refs/heads/snap-stage3 c: 2baeabd h: refs/heads/master i: 207833: 2a98196 207831: b7721ca v: v3
1 parent e66f251 commit 15d904f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a237ceb030700792cd2e0895a0839bbf5e7b60a4
4+
refs/heads/snap-stage3: 2baeabddd98d38497780bcc2271b71ee693680df
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/libstd/net/addr.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub enum SocketAddr {
4141
#[stable(feature = "rust1", since = "1.0.0")]
4242
pub struct SocketAddrV4 { inner: libc::sockaddr_in }
4343

44-
/// An IPv6 socket address
44+
/// An IPv6 socket address.
4545
#[derive(Copy)]
4646
#[stable(feature = "rust1", since = "1.0.0")]
4747
pub struct SocketAddrV6 { inner: libc::sockaddr_in6 }
@@ -56,7 +56,7 @@ impl SocketAddr {
5656
}
5757
}
5858

59-
/// Gets the IP address associated with this socket address.
59+
/// Returns the IP address associated with this socket address.
6060
#[unstable(feature = "ip_addr", reason = "recent addition")]
6161
pub fn ip(&self) -> IpAddr {
6262
match *self {
@@ -65,7 +65,7 @@ impl SocketAddr {
6565
}
6666
}
6767

68-
/// Gets the port number associated with this socket address
68+
/// Returns the port number associated with this socket address.
6969
#[stable(feature = "rust1", since = "1.0.0")]
7070
pub fn port(&self) -> u16 {
7171
match *self {
@@ -89,15 +89,15 @@ impl SocketAddrV4 {
8989
}
9090
}
9191

92-
/// Gets the IP address associated with this socket address.
92+
/// Returns the IP address associated with this socket address.
9393
#[stable(feature = "rust1", since = "1.0.0")]
9494
pub fn ip(&self) -> &Ipv4Addr {
9595
unsafe {
9696
&*(&self.inner.sin_addr as *const libc::in_addr as *const Ipv4Addr)
9797
}
9898
}
9999

100-
/// Gets the port number associated with this socket address
100+
/// Returns the port number associated with this socket address.
101101
#[stable(feature = "rust1", since = "1.0.0")]
102102
pub fn port(&self) -> u16 { ntoh(self.inner.sin_port) }
103103
}
@@ -120,24 +120,24 @@ impl SocketAddrV6 {
120120
}
121121
}
122122

123-
/// Gets the IP address associated with this socket address.
123+
/// Returns the IP address associated with this socket address.
124124
#[stable(feature = "rust1", since = "1.0.0")]
125125
pub fn ip(&self) -> &Ipv6Addr {
126126
unsafe {
127127
&*(&self.inner.sin6_addr as *const libc::in6_addr as *const Ipv6Addr)
128128
}
129129
}
130130

131-
/// Gets the port number associated with this socket address
131+
/// Returns the port number associated with this socket address.
132132
#[stable(feature = "rust1", since = "1.0.0")]
133133
pub fn port(&self) -> u16 { ntoh(self.inner.sin6_port) }
134134

135-
/// Gets scope ID associated with this address, corresponding to the
135+
/// Returns scope ID associated with this address, corresponding to the
136136
/// `sin6_flowinfo` field in C.
137137
#[stable(feature = "rust1", since = "1.0.0")]
138138
pub fn flowinfo(&self) -> u32 { ntoh(self.inner.sin6_flowinfo) }
139139

140-
/// Gets scope ID associated with this address, corresponding to the
140+
/// Returns scope ID associated with this address, corresponding to the
141141
/// `sin6_scope_id` field in C.
142142
#[stable(feature = "rust1", since = "1.0.0")]
143143
pub fn scope_id(&self) -> u32 { ntoh(self.inner.sin6_scope_id) }

0 commit comments

Comments
 (0)