mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Replace "iff" with "if and only if"
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.
This commit is contained in:
parent
a8dc5156e1
commit
9e0075a3d9
Notes:
git
2021-01-20 05:07:14 +09:00
17 changed files with 18 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
|||
require_relative '../../spec_helper'
|
||||
|
||||
describe "Integer#allbits?" do
|
||||
it "returns true iff all the bits of the argument are set in the receiver" do
|
||||
it "returns true if and only if all the bits of the argument are set in the receiver" do
|
||||
42.allbits?(42).should == true
|
||||
0b1010_1010.allbits?(0b1000_0010).should == true
|
||||
0b1010_1010.allbits?(0b1000_0001).should == false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue