diff --git a/doc/csv/recipes/parsing.rdoc b/doc/csv/recipes/parsing.rdoc index 08d1aaa5..e7bfc072 100644 --- a/doc/csv/recipes/parsing.rdoc +++ b/doc/csv/recipes/parsing.rdoc @@ -110,7 +110,7 @@ You can parse \CSV data from a \File, with or without headers. ===== Recipe: Parse from \File with Headers -Use instance method CSV#read with option +headers+ to read a file all at once: +Use class method CSV.read with option +headers+ to read a file all at once: string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n" path = 't.csv' File.write(path, string)