[前][次][番号順一覧][スレッド一覧]

ruby-changes:65987

From: Gannon <ko1@a...>
Date: Tue, 27 Apr 2021 21:23:30 +0900 (JST)
Subject: [ruby-changes:65987] 1b2abb6590 (master): [ruby/net-ftp] Replace "iff" with "if and only if"

https://git.ruby-lang.org/ruby.git/commit/?id=1b2abb6590

From 1b2abb6590a653cb7b31d73c42edbaf2d0617b27 Mon Sep 17 00:00:00 2001
From: Gannon McGibbon <gannon.mcgibbon@g...>
Date: Wed, 20 Jan 2021 20:09:33 -0500
Subject: [ruby/net-ftp] 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-ftp/commit/e920473618
---
 lib/net/ftp.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 3536e01..bb74609 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -1366,7 +1366,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/ftp.rb#L1366
     end
 
     #
-    # Returns +true+ iff the connection is closed.
+    # Returns +true+ if and only if the connection is closed.
     #
     def closed?
       @sock == nil or @sock.closed?
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]