[ruby-cvs:54044] nobu:r46898 (trunk): string.c: simplify

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Jul 22 14:22:32 JST 2014


nobu	2014-07-22 14:22:32 +0900 (Tue, 22 Jul 2014)

  New Revision: 46898

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46898

  Log:
    string.c: simplify
    
    * string.c (rb_str_count): move code for the first argument
      outside loop for the rest, as it is executed only once.

  Modified files:
    trunk/string.c


More information about the ruby-cvs mailing list