Skip to content

Commit

Permalink
* lib/csv.rb: [DOC] Fix typos
Browse files Browse the repository at this point in the history
s/occurrs/occurs/, s/interation/iteration/, s/intetionally/intentionally/,
s/modfied/modified/, s/axception/exception/, s/curcuit/circuit/
[ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
amatsuda committed Dec 2, 2013
1 parent 34e57ab commit 01b1f00
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def headers
# This method will return the field value by +header+ or +index+. If a field
# is not found, +nil+ is returned.
#
# When provided, +offset+ ensures that a header match occurrs on or later
# When provided, +offset+ ensures that a header match occurs on or later
# than the +offset+ index. You can use this to find duplicate headers,
# without resorting to hard-coding exact indices.
#
Expand Down Expand Up @@ -812,7 +812,7 @@ def delete(index_or_header)
#
# Removes any column or row for which the block returns +true+. In the
# default mixed mode or row mode, iteration is the standard row major
# walking of rows. In column mode, interation will +yield+ two element
# walking of rows. In column mode, iteration will +yield+ two element
# tuples containing the column name and an Array of values for that column.
#
# This method returns the table for chaining.
Expand All @@ -835,7 +835,7 @@ def delete_if(&block)

#
# In the default mixed mode or row mode, iteration is the standard row major
# walking of rows. In column mode, interation will +yield+ two element
# walking of rows. In column mode, iteration will +yield+ two element
# tuples containing the column name and an Array of values for that column.
#
# This method returns the table for chaining.
Expand Down Expand Up @@ -983,7 +983,7 @@ class MalformedCSVError < RuntimeError; end
# attempting a conversion. If your data cannot be transcoded to UTF-8 the
# conversion will fail and the header will remain unchanged.
#
# This Hash is intetionally left unfrozen and users should feel free to add
# This Hash is intentionally left unfrozen and users should feel free to add
# values to it that can be accessed by all CSV objects.
#
# To add a combo field, the value should be an Array of names. Combo fields
Expand Down Expand Up @@ -1133,7 +1133,7 @@ def self.foreach(path, options = Hash.new, &block)
# append CSV rows to the String and when the block exits, the final String
# will be returned.
#
# Note that a passed String *is* modfied by this method. Call dup() before
# Note that a passed String *is* modified by this method. Call dup() before
# passing if you need a new String.
#
# The +options+ parameter can be anything CSV::new() understands. This method
Expand Down Expand Up @@ -1969,7 +1969,7 @@ def init_separators(options)
else
begin
#
# remember where we were (pos() will raise an axception if @io is pipe
# remember where we were (pos() will raise an exception if @io is pipe
# or not opened for reading)
#
saved_pos = @io.pos
Expand Down Expand Up @@ -2175,7 +2175,7 @@ def convert_fields(fields, headers = false)
header = @use_headers && !headers ? @headers[index] : nil
converter[field, FieldInfo.new(index, lineno, header)]
end
break unless field.is_a? String # short-curcuit pipeline for speed
break unless field.is_a? String # short-circuit pipeline for speed
end
field # final state of each field, converted or original
end
Expand Down

0 comments on commit 01b1f00

Please sign in to comment.