From ba5a40fe7d97a24af49ce4b2f9bf397187e05ff7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 23 Jan 2016 02:30:07 +0000 Subject: Update documentation of CSV header converter * lib/csv.rb: Update documentation of CSV header converter for r45498, [GH-575]. [Fix GH-1215] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/csv.rb | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index dfba483210..b8962a1eeb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jan 23 11:29:16 2016 Pascal Betz + + * lib/csv.rb: Update documentation of CSV header converter for + r45498, [GH-575]. [Fix GH-1215] + Fri Jan 22 17:36:46 2016 Nobuyoshi Nakada * vm_core.h (VM_ASSERT): use RUBY_ASSERT instead of rb_bug. diff --git a/lib/csv.rb b/lib/csv.rb index cd2d579b58..509e9780fa 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -982,9 +982,10 @@ class CSV # through the +options+ Hash passed to CSV::new(). # # :downcase:: Calls downcase() on the header String. - # :symbol:: The header String is downcased, spaces are - # replaced with underscores, non-word characters - # are dropped, and finally to_sym() is called. + # :symbol:: Leading/trailing spaces are dropped, string is + # downcased, remaining spaces are replaced with + # underscores, non-word characters are dropped, + # and finally to_sym() is called. # # All built-in header converters transcode header data to UTF-8 before # attempting a conversion. If your data cannot be transcoded to UTF-8 the -- cgit v1.2.3