Skip to content

Commit 6544b21

Browse files
herwinwkou
andauthored
Fix typo in recipe "Parse from File with Headers" (#307)
The text mentioned an instance method, the code itself uses a class method. --------- Co-authored-by: Herwin <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]>
1 parent 47bf76f commit 6544b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/csv/recipes/parsing.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ You can parse \CSV data from a \File, with or without headers.
110110

111111
===== Recipe: Parse from \File with Headers
112112

113-
Use instance method CSV#read with option +headers+ to read a file all at once:
113+
Use class method CSV.read with option +headers+ to read a file all at once:
114114
string = "Name,Value\nfoo,0\nbar,1\nbaz,2\n"
115115
path = 't.csv'
116116
File.write(path, string)

0 commit comments

Comments
 (0)