aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/prime.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index aa218a6ef9..ea3d8b5d8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jun 11 15:27:17 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/prime.rb: documentation typo fixed. a patch from okkez.
+ [ruby-dev:38586]
+
Wed Jun 10 18:15:17 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* dir.c (dir_s_getwd): directory path's encoding should be filesystem's
diff --git a/lib/prime.rb b/lib/prime.rb
index ec3f8fa8cb..50b78d9b0e 100644
--- a/lib/prime.rb
+++ b/lib/prime.rb
@@ -118,7 +118,7 @@ class Prime
# if no block given.
#
# == Description
- # Calls +block+ once for each prime numer, passing the prime as
+ # Calls +block+ once for each prime number, passing the prime as
# a parameter.
#
# +ubound+::
@@ -127,7 +127,7 @@ class Prime
#
# == Note
# +Prime+.+new+ returns a object extended by +Prime+::+OldCompatibility+
- # in order to compatibility to Ruby 1.9, and +Prime+#each is overwritten
+ # in order to compatibility to Ruby 1.8, and +Prime+#each is overwritten
# by +Prime+::+OldCompatibility+#+each+.
#
# +Prime+.+new+ is now obsolete. Use +Prime+.+instance+.+each+ or simply