Browse Source

comment typo

Roberto Ierusalimschy 14 years ago
parent
commit
4834de8427
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lobject.c

+ 2 - 2
lobject.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: lobject.c,v 2.40 2010/04/18 13:22:48 roberto Exp roberto $
+** $Id: lobject.c,v 2.41 2010/10/28 15:39:03 roberto Exp roberto $
 ** Some generic functions over Lua objects
 ** Some generic functions over Lua objects
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -116,7 +116,7 @@ static int checkend (const char *s, const char *endptr) {
 int luaO_str2d (const char *s, lua_Number *result) {
 int luaO_str2d (const char *s, lua_Number *result) {
   char *endptr;
   char *endptr;
   *result = lua_str2number(s, &endptr);
   *result = lua_str2number(s, &endptr);
-  if (checkend(s, endptr)) return 1;  /* convertion OK? */
+  if (checkend(s, endptr)) return 1;  /* conversion OK? */
   *result = cast_num(strtoul(s, &endptr, 0)); /* try hexadecimal */
   *result = cast_num(strtoul(s, &endptr, 0)); /* try hexadecimal */
   return checkend(s, endptr);
   return checkend(s, endptr);
 }
 }