ruby-changes:25703
From: nobu <ko1@a...>
Date: Tue, 20 Nov 2012 21:34:54 +0900 (JST)
Subject: [ruby-changes:25703] nobu:r37760 (trunk): file.c: fix rdoc
nobu 2012-11-20 21:34:45 +0900 (Tue, 20 Nov 2012) New Revision: 37760 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37760 Log: file.c: fix rdoc * file.c (rb_file_s_extname): fix rdoc for an edge case. Modified files: trunk/file.c Index: file.c =================================================================== --- file.c (revision 37759) +++ file.c (revision 37760) @@ -3853,8 +3853,8 @@ * Returns the extension (the portion of file name in +path+ * starting from the last period). * - * If +path+ is a dotfile, or starts with a period, then only an empty string - * will be returned. + * If +path+ is a dotfile, or starts with a period, then the starting + * dot is not dealt with the start of the extension. * * An empty string will also be returned when the period is the last character * in +path+. @@ -3864,6 +3864,7 @@ * File.extname("foo.") #=> "" * File.extname("test") #=> "" * File.extname(".profile") #=> "" + * File.extname(".profile.sh") #=> ".sh" * */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/