Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace "iff" with "if and only if" #18

Merged
merged 1 commit into from Jan 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions ext/strscan/strscan.c
Expand Up @@ -984,7 +984,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
Expand Down Expand Up @@ -1037,7 +1037,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')
Expand All @@ -1054,7 +1054,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
Expand Down