Merge pull request #2875 from davydovanton/doc-comment-typo

Fix typo in comment in String#mrb_cstr_to_inum
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-07-07 00:34:03 +09:00
+1 -1
View File
@@ -1927,7 +1927,7 @@ mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
}
break;
} /* end of switch (base) { */
if (*str == '0') { /* squeeze preceeding 0s */
if (*str == '0') { /* squeeze preceding 0s */
uscore = 0;
while ((c = *++str) == '0' || c == '_') {
if (c == '_') {