From 1def8a60045bad5366740f1cb7a10bd1c85460d5 Mon Sep 17 00:00:00 2001 From: Gannon McGibbon Date: Fri, 22 Jan 2021 17:15:38 -0500 Subject: [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 --- .../resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb | 2 +- lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rubygems') 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 -- cgit v1.2.3