From 4919d4dd37a03749fb9405cfb4eb2a1f4b2f5b1c Mon Sep 17 00:00:00 2001 From: Tom Lord Date: Sat, 24 Jan 2015 16:30:48 +0000 Subject: [PATCH] RDoc correction --- lib/regexp-examples/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/regexp-examples/helpers.rb b/lib/regexp-examples/helpers.rb index 6f28be0..d929017 100644 --- a/lib/regexp-examples/helpers.rb +++ b/lib/regexp-examples/helpers.rb @@ -5,7 +5,7 @@ module RegexpExamples # element from each array # # For example: - # permutations_of_strings [ ['a'], ['b'], ['c', 'd', 'e'] ] #=> ['acb', 'abd', 'abe'] + # permutations_of_strings [ ['a'], ['b'], ['c', 'd', 'e'] ] #=> ['abc', 'abd', 'abe'] # permutations_of_strings [ ['a', 'b'], ['c', 'd'] ] #=> [ 'ac', 'ad', 'bc', 'bd' ] def self.permutations_of_strings(arrays_of_strings) first = arrays_of_strings.shift