about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-22 15:32:14 +0200
committerGitHub <noreply@github.com>2019-07-22 15:32:14 +0200
commit002f604bc9c791ce8cc93581902588b251b51ee7 (patch)
tree449a0a4a79efc5a7afa3ffa7b7bf183356764970 /src/libstd
parent1d7faafe47a3d34ef854609e7b4a5e48cc66e7a9 (diff)
parent48b6069eafa1a2d0904ef39596604a93fe99ed6a (diff)
downloadrust-002f604bc9c791ce8cc93581902588b251b51ee7.tar.gz
rust-002f604bc9c791ce8cc93581902588b251b51ee7.zip
Rollup merge of #62787 - Indy2222:master, r=Mark-Simulacrum
Fix typo in src/libstd/net/udp.rs doc comment

Affect is usually used as a verb, effect as a verb.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net/udp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/net/udp.rs b/src/libstd/net/udp.rs
index 61d9149952e..c430e103951 100644
--- a/src/libstd/net/udp.rs
+++ b/src/libstd/net/udp.rs
@@ -422,7 +422,7 @@ impl UdpSocket {
     /// Sets the value of the `IP_MULTICAST_LOOP` option for this socket.
     ///
     /// If enabled, multicast packets will be looped back to the local socket.
-    /// Note that this may not have any affect on IPv6 sockets.
+    /// Note that this may not have any effect on IPv6 sockets.
     ///
     /// # Examples
     ///
@@ -464,7 +464,7 @@ impl UdpSocket {
     /// this socket. The default value is 1 which means that multicast packets
     /// don't leave the local network unless explicitly requested.
     ///
-    /// Note that this may not have any affect on IPv6 sockets.
+    /// Note that this may not have any effect on IPv6 sockets.
     ///
     /// # Examples
     ///