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.
This commit is contained in:
bors 2016-01-18 00:58:21 +00:00
commit d0bac3f147
1 changed files with 4 additions and 4 deletions

View File

@ -140,13 +140,13 @@ impl SocketAddrV6 {
#[stable(feature = "rust1", since = "1.0.0")]
pub fn port(&self) -> u16 { ntoh(self.inner.sin6_port) }
/// Returns scope ID associated with this address, corresponding to the
/// `sin6_flowinfo` field in C.
/// Returns the flow information associated with this address,
/// corresponding to the `sin6_flowinfo` field in C.
#[stable(feature = "rust1", since = "1.0.0")]
pub fn flowinfo(&self) -> u32 { ntoh(self.inner.sin6_flowinfo) }
/// Returns scope ID associated with this address, corresponding to the
/// `sin6_scope_id` field in C.
/// Returns the scope ID associated with this address,
/// corresponding to the `sin6_scope_id` field in C.
#[stable(feature = "rust1", since = "1.0.0")]
pub fn scope_id(&self) -> u32 { ntoh(self.inner.sin6_scope_id) }
}