summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-07-07 00:34:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-07-07 00:34:03 +0900
commitf1c6d6c8663272c0c2df39c65e68eda76c6b9327 (patch)
tree115e01663f0a653804a86cec9ee691490a5e54d0 /src
parente690e1e877f33cda815e4f8771208dda68def296 (diff)
parent03ae38df4e18c33e6ce4f5614bd4ec7b1ba9f192 (diff)
downloadmruby-f1c6d6c8663272c0c2df39c65e68eda76c6b9327.tar.gz
mruby-f1c6d6c8663272c0c2df39c65e68eda76c6b9327.zip
Merge pull request #2875 from davydovanton/doc-comment-typo
Fix typo in comment in String#mrb_cstr_to_inum
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 8df79d4c0..57b5eef9a 100644
--- a/src/string.c
+++ b/src/string.c
@@ -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 == '_') {