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

ruby-changes:60308

From: Marcus <ko1@a...>
Date: Fri, 6 Mar 2020 20:55:49 +0900 (JST)
Subject: [ruby-changes:60308] f236f6082c (master): [ruby/prime] Improve docs for Prime.include? (#7)

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

From f236f6082cf2d95c913c2d16c9a9a0ad554f627f Mon Sep 17 00:00:00 2001
From: Marcus Stollsteimer <sto.mar@w...>
Date: Wed, 25 Dec 2019 20:01:03 +0100
Subject: [ruby/prime] Improve docs for Prime.include? (#7)

https://github.com/ruby/prime/commit/230a5af325

diff --git a/lib/prime.rb b/lib/prime.rb
index 44129d2..deaf843 100644
--- a/lib/prime.rb
+++ b/lib/prime.rb
@@ -141,8 +141,9 @@ class Prime https://github.com/ruby/ruby/blob/trunk/lib/prime.rb#L141
     generator.each(&block)
   end
 
-  # Return true if +obj+ is an Integer an is prime.  Also returns
+  # Returns true if +obj+ is an Integer and is prime.  Also returns
   # true if +obj+ is a Module that is an ancestor of +Prime+.
+  # Otherwise returns false.
   def include?(obj)
     case obj
     when Integer
-- 
cgit v0.10.2


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

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