Skip to content

Commit 066451c

Browse files
authored
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.
1 parent 1603fee commit 066451c

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
@@ -984,7 +984,7 @@ strscan_unscan(VALUE self)
984984
}
985985

986986
/*
987-
* Returns +true+ iff the scan pointer is at the beginning of the line.
987+
* Returns +true+ if and only if the scan pointer is at the beginning of the line.
988988
*
989989
* s = StringScanner.new("test\ntest\n")
990990
* s.bol? # => true
@@ -1037,7 +1037,7 @@ strscan_empty_p(VALUE self)
10371037
}
10381038

10391039
/*
1040-
* Returns true iff there is more data in the string. See #eos?.
1040+
* Returns true if and only if there is more data in the string. See #eos?.
10411041
* This method is obsolete; use #eos? instead.
10421042
*
10431043
* s = StringScanner.new('test string')
@@ -1054,7 +1054,7 @@ strscan_rest_p(VALUE self)
10541054
}
10551055

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

0 commit comments

Comments
 (0)