]> git.lizzy.rs Git - rust.git/commitdiff
Fix SocketAddrV6::flowinfo docs
authorSimon Sapin <simon.sapin@exyr.org>
Sun, 17 Jan 2016 09:54:38 +0000 (10:54 +0100)
committerSimon Sapin <simon.sapin@exyr.org>
Sun, 17 Jan 2016 09:54:38 +0000 (10:54 +0100)
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.

src/libstd/net/addr.rs

index 7ae389615aca15ffd86674aa7888474cc36f46a4..9382793b8bea23cbb88cbd645d729d223c523f3a 100644 (file)
@@ -140,13 +140,13 @@ pub fn ip(&self) -> &Ipv6Addr {
     #[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) }
 }