Skip to content

Fixed some occurrences of 'if' being spelled 'iff' #26878

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

Merged
merged 2 commits into from
Jul 11, 2015
Merged

Fixed some occurrences of 'if' being spelled 'iff' #26878

merged 2 commits into from
Jul 11, 2015

Conversation

Esption
Copy link
Contributor

@Esption Esption commented Jul 8, 2015

I noticed in docs, specifically http://doc.rust-lang.org/std/primitive.u8.html#method.is_power_of_two, that it was like this, and it was apparently in multiple places too.

Didn't change any occurrences through the cross-depo things. There's a lot in /src/llvm/ for instance, but I'm not confident on how to go about sending fixes for those, so this is just what's in the base rust depo.

r? @steveklabnik

@rust-highfive
Copy link
Contributor

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@killercup
Copy link
Member

I've been told that "iff" is short for "if and only if" (Wikipedia confirms this).

@Esption
Copy link
Contributor Author

Esption commented Jul 8, 2015

Ahh, well I feel dumb then. Well TIL I guess.

@Esption Esption closed this Jul 8, 2015
@tomjakubowski
Copy link
Contributor

I think use of "iff" in API docs should probably be replaced with "if, and only if,", unless it's in a highly technical section that already discusses things in mathematical terms (like a proof of some algorithm's correctness).

@steveklabnik
Copy link
Member

@tomjakubowski agreed. Almost all of these are not in documentation, but I would accept a patch that changed it to be more explicit in user-facing stuff

@Esption
Copy link
Contributor Author

Esption commented Jul 9, 2015

@steveklabnik Okay, then I've undone the "iff" -> 'if" from the last commit and the rustdoc comments that had "iff" are renamed to "if and only if"

@Esption Esption reopened this Jul 9, 2015
@pnkfelix
Copy link
Member

pnkfelix commented Jul 9, 2015

@bors r=dad8cd1 rollup

@bors
Copy link
Collaborator

bors commented Jul 9, 2015

📌 Commit dad8cd1 has been approved by dad8cd1

@pnkfelix
Copy link
Member

pnkfelix commented Jul 9, 2015

r=pnkfelix

@pnkfelix
Copy link
Member

pnkfelix commented Jul 9, 2015

@bors r=pnkfelix

@bors
Copy link
Collaborator

bors commented Jul 9, 2015

📌 Commit dad8cd1 has been approved by pnkfelix

@bors
Copy link
Collaborator

bors commented Jul 9, 2015

⌛ Testing commit dad8cd1 with merge 8b57215...

@bors
Copy link
Collaborator

bors commented Jul 9, 2015

💔 Test failed - auto-linux-64-opt

@steveklabnik
Copy link
Member

@bors: retry

bors added a commit that referenced this pull request Jul 11, 2015
I noticed in docs, specifically http://doc.rust-lang.org/std/primitive.u8.html#method.is_power_of_two, that it was like this, and it was apparently in multiple places too.

Didn't change any occurrences through the cross-depo things. There's a lot in /src/llvm/ for instance, but I'm not confident on how to go about sending fixes for those, so this is just what's in the base rust depo.

r? @steveklabnik
@bors
Copy link
Collaborator

bors commented Jul 11, 2015

⌛ Testing commit dad8cd1 with merge d18eb74...

@tshepang
Copy link
Member

is_power_of_two is one weird method; never seen anything like it before

@bors bors merged commit dad8cd1 into rust-lang:master Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants