Skip to content

Commit 3ad33fd

Browse files
committed
typos in comments
1 parent c1f2e4a commit 3ad33fd

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

lobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lobject.c,v 2.120 2017/11/16 13:19:06 roberto Exp roberto $
2+
** $Id: lobject.c,v 2.121 2017/11/23 19:29:04 roberto Exp roberto $
33
** Some generic functions over Lua objects
44
** See Copyright Notice in lua.h
55
*/
@@ -193,7 +193,7 @@ static int isneg (const char **s) {
193193
#define MAXSIGDIG 30
194194

195195
/*
196-
** convert an hexadecimal numeric string to a number, following
196+
** convert a hexadecimal numeric string to a number, following
197197
** C99 specification for 'strtod'
198198
*/
199199
static lua_Number lua_strx2number (const char *s, char **endptr) {
@@ -268,7 +268,7 @@ static const char *l_str2dloc (const char *s, lua_Number *result, int mode) {
268268
** Convert string 's' to a Lua number (put in 'result'). Return NULL
269269
** on fail or the address of the ending '\0' on success.
270270
** 'pmode' points to (and 'mode' contains) special things in the string:
271-
** - 'x'/'X' means an hexadecimal numeral
271+
** - 'x'/'X' means a hexadecimal numeral
272272
** - 'n'/'N' means 'inf' or 'nan' (which should be rejected)
273273
** - '.' just optimizes the search for the common case (nothing special)
274274
** This function accepts both the current locale or a dot as the radix

luaconf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: luaconf.h,v 1.261 2017/04/24 18:06:12 roberto Exp roberto $
2+
** $Id: luaconf.h,v 1.262 2017/12/07 18:53:33 roberto Exp roberto $
33
** Configuration file for Lua
44
** See Copyright Notice in lua.h
55
*/
@@ -610,7 +610,7 @@
610610

611611

612612
/*
613-
@@ lua_strx2number converts an hexadecimal numeric string to a number.
613+
@@ lua_strx2number converts a hexadecimal numeric string to a number.
614614
** In C99, 'strtod' does that conversion. Otherwise, you can
615615
** leave 'lua_strx2number' undefined and Lua will provide its own
616616
** implementation.
@@ -628,7 +628,7 @@
628628

629629

630630
/*
631-
@@ lua_number2strx converts a float to an hexadecimal numeric string.
631+
@@ lua_number2strx converts a float to a hexadecimal numeric string.
632632
** In C99, 'sprintf' (with format specifiers '%a'/'%A') does that.
633633
** Otherwise, you can leave 'lua_number2strx' undefined and Lua will
634634
** provide its own implementation.

lvm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lvm.c,v 2.329 2017/12/22 14:16:46 roberto Exp roberto $
2+
** $Id: lvm.c,v 2.330 2017/12/28 15:42:57 roberto Exp roberto $
33
** Lua virtual machine
44
** See Copyright Notice in lua.h
55
*/
@@ -674,7 +674,7 @@ static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base,
674674

675675

676676
/*
677-
** finish execution of an opcode interrupted by an yield
677+
** finish execution of an opcode interrupted by a yield
678678
*/
679679
void luaV_finishOp (lua_State *L) {
680680
CallInfo *ci = L->ci;

0 commit comments

Comments
 (0)