diff --git a/ChangeLog b/ChangeLog index 7bdeddec37..81f3cef62e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Sep 17 12:44:04 2011 Kazuki Tsujimoto + + * lib/find.rb (Find.find): add documentation that Find.find + without block returns an enumerator. + Thu Sep 15 11:39:43 2011 Nobuyoshi Nakada * gc.c (mark_entry, mark_key, mark_keyvalue): adjust callback diff --git a/lib/find.rb b/lib/find.rb index cd2d1bf38b..571609cdef 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -30,6 +30,8 @@ module Find # Calls the associated block with the name of every file and directory listed # as arguments, then recursively on their subdirectories, and so on. # + # Returns an enumerator if no block is given. + # # See the +Find+ module documentation for an example. # def find(*paths) # :yield: path