Skip to content

Commit

Permalink
fix typo conveters => converters for CSV parsing docs (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
sampatbadhe authored Dec 25, 2020
1 parent 5855c01 commit 77ccf48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/csv/recipes/parsing.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ You can use multiple field converters in either of these ways:

===== Recipe: Specify Multiple Field Converters in Option +:converters+

Apply multiple field converters by specifying them in option +:conveters+:
Apply multiple field converters by specifying them in option +:converters+:
source = "Name,Value\nfoo,0\nbar,1.0\nbaz,2.0\n"
parsed = CSV.parse(source, headers: true, converters: [:integer, :float])
parsed['Value'] # => [0, 1.0, 2.0]
Expand Down Expand Up @@ -500,7 +500,7 @@ You can use multiple header converters in either of these ways:

===== Recipe: Specify Multiple Header Converters in Option :header_converters

Apply multiple header converters by specifying them in option +:header_conveters+:
Apply multiple header converters by specifying them in option +:header_converters+:
source = "Name,Value\nfoo,0\nbar,1.0\nbaz,2.0\n"
parsed = CSV.parse(source, headers: true, header_converters: [:downcase, :symbol])
parsed.headers # => [:name, :value]
Expand Down

0 comments on commit 77ccf48

Please sign in to comment.