From 13b552538af9e9794398e4a4177ba1cea04cccca Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Tue, 20 Oct 2015 12:48:31 -0300 Subject: Remove obvious warnings from docs --- mrblib/enum.rb | 19 +++++++++---------- mrblib/hash.rb | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'mrblib') diff --git a/mrblib/enum.rb b/mrblib/enum.rb index f0c9a4884..650d24302 100644 --- a/mrblib/enum.rb +++ b/mrblib/enum.rb @@ -1,17 +1,16 @@ ## # Enumerable # -# ISO 15.3.2 +# The Enumerable mixin provides collection classes with +# several traversal and searching methods, and with the ability to +# sort. The class must provide a method `each`, which +# yields successive members of the collection. If +# {Enumerable#max}, {#min}, or +# {#sort} is used, the objects in the collection must also +# implement a meaningful `<=>` operator, as these methods +# rely on an ordering between members of the collection. # -# The Enumerable mixin provides collection classes with -# several traversal and searching methods, and with the ability to -# sort. The class must provide a method each, which -# yields successive members of the collection. If -# Enumerable#max, #min, or -# #sort is used, the objects in the collection must also -# implement a meaningful <=> operator, as these methods -# rely on an ordering between members of the collection. - +# @ISO 15.3.2 module Enumerable ## diff --git a/mrblib/hash.rb b/mrblib/hash.rb index 48ac96e56..e3e709070 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -74,8 +74,8 @@ class Hash # # If no block is given, an enumerator is returned instead. # - # h = { "a" => 100, "b" => 200 } - # h.each {|key, value| puts "#{key} is #{value}" } + # h = { "a" => 100, "b" => 200 } + # h.each {|key, value| puts "#{key} is #{value}" } # # produces: # -- cgit v1.2.3