Skip to content

Commit a42b7de

Browse files
gmcgibbonhsbt
authored andcommitted
[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. ruby/strscan@066451c11e
1 parent 564ccd0 commit a42b7de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/strscan/strscan.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ strscan_unscan(VALUE self)
981981
}
982982

983983
/*
984-
* Returns +true+ iff the scan pointer is at the beginning of the line.
984+
* Returns +true+ if and only if the scan pointer is at the beginning of the line.
985985
*
986986
* s = StringScanner.new("test\ntest\n")
987987
* s.bol? # => true
@@ -1034,7 +1034,7 @@ strscan_empty_p(VALUE self)
10341034
}
10351035

10361036
/*
1037-
* Returns true iff there is more data in the string. See #eos?.
1037+
* Returns true if and only if there is more data in the string. See #eos?.
10381038
* This method is obsolete; use #eos? instead.
10391039
*
10401040
* s = StringScanner.new('test string')
@@ -1051,7 +1051,7 @@ strscan_rest_p(VALUE self)
10511051
}
10521052

10531053
/*
1054-
* Returns +true+ iff the last match was successful.
1054+
* Returns +true+ if and only if the last match was successful.
10551055
*
10561056
* s = StringScanner.new('test string')
10571057
* s.match?(/\w+/) # => 4

0 commit comments

Comments
 (0)