1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

csv.rb: fix typo

* lib/csv.rb (CSV#shift): fix typo.  [See GH-1160]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-18 03:55:08 +00:00
parent 4f94cb43fc
commit 3bf1c09c7a

View file

@ -1855,7 +1855,7 @@ class CSV
csv.last << @col_sep
end
elsif part[0] == @quote_char
# If we are staring a new quoted column
# If we are starting a new quoted column
if part[-1] != @quote_char || part.count(@quote_char) % 2 != 0
# start an extended column
csv << part[1..-1]