1
Fork 0

Fix SocketAddrV6::flowinfo docs

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:
Simon Sapin 2016-01-17 10:54:38 +01:00
parent 88463364bf
commit f09bcc10c6

View file

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