summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/find.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d3d5603687..2b22f48c3d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 20 10:30:00 2012 Zachary Scott <zzak@ruby-lang.org>
+
+ * lib/find.rb: Error in documentation example
+ Found by Herwin Weststrate, thank you!
+
Thu Sep 20 07:20:00 2012 Zachary Scott <zzak@ruby-lang.org>
* complex.c: Examples for Complex Documentation.
diff --git a/lib/find.rb b/lib/find.rb
index 571609cdef..2114cbf9e1 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -14,7 +14,7 @@
#
# Find.find(ENV["HOME"]) do |path|
# if FileTest.directory?(path)
-# if File.basename(path)[0] == ?.
+# if File.basename(path)[0] == ".."
# Find.prune # Don't look any further into this directory.
# else
# next