From 8056b9ac255392a714e221900471b900bee2f9fc Mon Sep 17 00:00:00 2001 From: sampatbadhe Date: Sat, 27 Aug 2022 07:34:50 +0530 Subject: [PATCH] Correct the example for CSV.generate_lines --- lib/csv.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/csv.rb b/lib/csv.rb index 170ab04c..20664d0f 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -1489,12 +1489,12 @@ def generate_line(row, **options) # --- # # Returns the \String generated from an - # CSV.generate_lines(['foo', '0'], ['bar', '1'], ['baz', '2']) # => "foo,0\nbar,1\nbaz.2\n" + # CSV.generate_lines([['foo', '0'], ['bar', '1'], ['baz', '2']]) # => "foo,0\nbar,1\nbaz,2\n" # # --- # # Raises an exception - # # Raises NoMethodError (undefined method `find' for :foo:Symbol) + # # Raises NoMethodError (undefined method `each' for :foo:Symbol) # CSV.generate_lines(:foo) # def generate_lines(rows, **options)