From 41e6ee99ca6ac7ea386600e4bd368dba987e3902 Mon Sep 17 00:00:00 2001 From: Andrei Bocan Date: Thu, 15 Mar 2012 12:52:21 +0100 Subject: [PATCH] Fix documentation for Abbrev::abbrev --- lib/abbrev.rb | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/abbrev.rb b/lib/abbrev.rb index e6e810b..c36904e 100644 --- a/lib/abbrev.rb +++ b/lib/abbrev.rb @@ -15,17 +15,16 @@ # require 'abbrev' # require 'pp' # -# pp Abbrev::abbrev(['ruby', 'rules']).sort +# pp Abbrev::abbrev(['ruby', 'rules']) # # Generates: +# { "rub" => "ruby", +# "rule" => "rules", +# "rul" => "rules", +# "ruby" => "ruby", +# "rules" => "rules" } # -# [["rub", "ruby"], -# ["ruby", "ruby"], -# ["rul", "rules"], -# ["rule", "rules"], -# ["rules", "rules"]] -# -# Also adds an +abbrev+ method to class +Array+. +# It also adds an +abbrev+ method to class +Array+. module Abbrev -- 1.7.5.4