ruby-changes:50914
From: stomar <ko1@a...>
Date: Mon, 9 Apr 2018 04:39:43 +0900 (JST)
Subject: [ruby-changes:50914] stomar:r63121 (trunk): parse.y: fix docs for Ripper.dedent_string
stomar 2018-04-09 04:39:38 +0900 (Mon, 09 Apr 2018) New Revision: 63121 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63121 Log: parse.y: fix docs for Ripper.dedent_string * parse.y: [DOC] fix return type in call-seq of Ripper.dedent_string, clarify the method's behavior. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 63120) +++ parse.y (revision 63121) @@ -6130,10 +6130,10 @@ heredoc_dedent(struct parser_params *p, https://github.com/ruby/ruby/blob/trunk/parse.y#L6130 /* * call-seq: - * Ripper.dedent_string(input, width) -> string + * Ripper.dedent_string(input, width) -> Integer * - * Strips leading +width+ whitespaces from +input+, and returns - * stripped column width. + * Strips up to +width+ leading whitespaces from +input+, + * and returns the stripped column width. */ static VALUE parser_dedent_string(VALUE self, VALUE input, VALUE width) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/