[前][次][番号順一覧][スレッド一覧]

ruby-changes:65003

From: Gannon <ko1@a...>
Date: Sat, 23 Jan 2021 09:51:11 +0900 (JST)
Subject: [ruby-changes:65003] 1def8a6004 (master): [rubygems/rubygems] Replace "iff" with "whether" and "if and only if"

https://git.ruby-lang.org/ruby.git/commit/?id=1def8a6004

From 1def8a60045bad5366740f1cb7a10bd1c85460d5 Mon Sep 17 00:00:00 2001
From: Gannon McGibbon <gannon.mcgibbon@g...>
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(-)

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 88b6580..f4cc333 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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb#L128
 
       # 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 2ec6b06..a6e182e 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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb#L34
 
   # 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.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]