diff options
author | Gannon McGibbon <gannon.mcgibbon@gmail.com> | 2021-01-22 17:15:38 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-01-23 09:50:47 +0900 |
commit | 1def8a60045bad5366740f1cb7a10bd1c85460d5 (patch) | |
tree | 824d30cc2974590ec7a3ae4f106238d0c0ff21b1 /lib/rubygems | |
parent | db7d0b89f6eca66cc7eb155c95f9123133da1ffc (diff) |
[rubygems/rubygems] Replace "iff" with "whether" and "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"
or "whether" should suffice.
https://github.com/rubygems/rubygems/commit/88318ebc6d
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb index 88b6580a52..f4cc333dd1 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb @@ -128,7 +128,7 @@ module Gem::Resolver::Molinillo # Is there a path from `self` to `other` following edges in the # dependency graph? - # @return true iff there is a path following edges within this {#graph} + # @return whether there is a path following edges within this {#graph} def path_to?(other) _path_to?(other) end diff --git a/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb b/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb index 2ec6b068ac..a6e182e84d 100644 --- a/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb +++ b/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb @@ -34,7 +34,7 @@ module Gem::Resolver::Molinillo # An error caused by attempting to fulfil a dependency that was circular # - # @note This exception will be thrown iff a {Vertex} is added to a + # @note This exception will be thrown if and only if a {Vertex} is added to a # {DependencyGraph} that has a {DependencyGraph::Vertex#path_to?} an # existing {DependencyGraph::Vertex} class CircularDependencyError < ResolverError |