ruby-changes:66082
From: Gannon <ko1@a...>
Date: Thu, 6 May 2021 16:45:54 +0900 (JST)
Subject: [ruby-changes:66082] a42b7de436 (master): [ruby/strscan] Replace "iff" with "if and only if" (#18)
https://git.ruby-lang.org/ruby.git/commit/?id=a42b7de436 From a42b7de436cfceb0d6607651a3a7bf4fbd887416 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon <gannon.mcgibbon@g...> Date: Wed, 20 Jan 2021 20:39:21 -0500 Subject: [ruby/strscan] Replace "iff" with "if and only if" (#18) 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/strscan/commit/066451c11e --- ext/strscan/strscan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index 7eb6181..42027cd 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -981,7 +981,7 @@ strscan_unscan(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L981 } /* - * Returns +true+ iff the scan pointer is at the beginning of the line. + * Returns +true+ if and only if the scan pointer is at the beginning of the line. * * s = StringScanner.new("test\ntest\n") * s.bol? # => true @@ -1034,7 +1034,7 @@ strscan_empty_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1034 } /* - * Returns true iff there is more data in the string. See #eos?. + * Returns true if and only if there is more data in the string. See #eos?. * This method is obsolete; use #eos? instead. * * s = StringScanner.new('test string') @@ -1051,7 +1051,7 @@ strscan_rest_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/strscan/strscan.c#L1051 } /* - * Returns +true+ iff the last match was successful. + * Returns +true+ if and only if the last match was successful. * * s = StringScanner.new('test string') * s.match?(/\w+/) # => 4 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/