summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2021-01-20 20:39:21 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-06 16:21:14 +0900
commita42b7de436cfceb0d6607651a3a7bf4fbd887416 (patch)
treeb8781894d835b0501a77b36727a6cad58eb08867 /ext
parent564ccd095a9d7fbe869031dbf666d61dadfdcb03 (diff)
[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
Diffstat (limited to 'ext')
-rw-r--r--ext/strscan/strscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 7eb6181203..42027cd8d2 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -981,7 +981,7 @@ strscan_unscan(VALUE self)
}
/*
- * 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)
}
/*
- * 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)
}
/*
- * 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