summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorAnton Davydov <[email protected]>2015-07-05 13:49:37 +0300
committerAnton Davydov <[email protected]>2015-07-05 13:53:14 +0300
commit03ae38df4e18c33e6ce4f5614bd4ec7b1ba9f192 (patch)
tree115e01663f0a653804a86cec9ee691490a5e54d0 /src/string.c
parente690e1e877f33cda815e4f8771208dda68def296 (diff)
downloadmruby-03ae38df4e18c33e6ce4f5614bd4ec7b1ba9f192.tar.gz
mruby-03ae38df4e18c33e6ce4f5614bd4ec7b1ba9f192.zip
Fix typo in comment in String#mrb_cstr_to_inum [skip ci]
Diffstat (limited to 'src/string.c')
-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 == '_') {