summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2021-01-20 20:16:22 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-01-23 10:20:28 +0900
commit37258b64c759c0add4d97f79aeeda8ae4ffc3677 (patch)
tree9ecfedc8de9dcf13fcb6189170b56a75c9abfac2 /lib/net/http.rb
parent47d6c55755f28fa83872fd2a3943770e7f788895 (diff)
[ruby/net-http] Replace "iff" with "if and only if"
iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice. https://github.com/ruby/net-http/commit/ffb87cad32
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 86fca183c1..629d678d1a 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -524,7 +524,7 @@ module Net #:nodoc:
#
# { "cmd" => "search", "q" => "ruby", "max" => "50" }
#
- # This method also does Basic Authentication iff +url+.user exists.
+ # This method also does Basic Authentication if and only if +url+.user exists.
# But userinfo for authentication is deprecated (RFC3986).
# So this feature will be removed.
#