Skip to content

Commit d0bac3f

Browse files
committed
Auto merge of #30973 - SimonSapin:patch-16, r=alexcrichton
I don’t understand what the "flow information" of an IPv6 address is, but it looks separate from the scope ID. This was probably a copy/paste error.
2 parents 4ab9a2d + f09bcc1 commit d0bac3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/net/addr.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ impl SocketAddrV6 {
140140
#[stable(feature = "rust1", since = "1.0.0")]
141141
pub fn port(&self) -> u16 { ntoh(self.inner.sin6_port) }
142142

143-
/// Returns scope ID associated with this address, corresponding to the
144-
/// `sin6_flowinfo` field in C.
143+
/// Returns the flow information associated with this address,
144+
/// corresponding to the `sin6_flowinfo` field in C.
145145
#[stable(feature = "rust1", since = "1.0.0")]
146146
pub fn flowinfo(&self) -> u32 { ntoh(self.inner.sin6_flowinfo) }
147147

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

0 commit comments

Comments
 (0)