Skip to content

Commit 599f174

Browse files
committed
detail (typo in comments)
1 parent 73abfde commit 599f174

9 files changed

+19
-19
lines changed

lapi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lapi.c,v 2.273 2017/11/02 11:28:56 roberto Exp $
2+
** $Id: lapi.c,v 2.276 2017/11/07 13:25:26 roberto Exp roberto $
33
** Lua API
44
** See Copyright Notice in lua.h
55
*/
@@ -205,7 +205,7 @@ LUA_API void lua_settop (lua_State *L, int idx) {
205205
** Reverse the stack segment from 'from' to 'to'
206206
** (auxiliary to 'lua_rotate')
207207
** Note that we move(copy) only the value inside the stack.
208-
** (We do not move addicional fields that may exist.)
208+
** (We do not move additional fields that may exist.)
209209
*/
210210
static void reverse (lua_State *L, StkId from, StkId to) {
211211
for (; from < to; from++, to--) {

lcode.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lcode.c,v 2.134 2017/11/22 18:41:20 roberto Exp roberto $
2+
** $Id: lcode.c,v 2.135 2017/11/22 19:15:44 roberto Exp roberto $
33
** Code generator for Lua
44
** See Copyright Notice in lua.h
55
*/
@@ -1331,7 +1331,7 @@ static void codeeq (FuncState *fs, BinOpr opr, expdesc *e1, expdesc *e2) {
13311331

13321332

13331333
/*
1334-
** Aplly prefix operation 'op' to expression 'e'.
1334+
** Apply prefix operation 'op' to expression 'e'.
13351335
*/
13361336
void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) {
13371337
static const expdesc ef = {VKINT, {0}, NO_JUMP, NO_JUMP};

ldebug.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: ldebug.c,v 2.144 2017/11/13 15:36:52 roberto Exp roberto $
2+
** $Id: ldebug.c,v 2.145 2017/11/23 16:35:54 roberto Exp roberto $
33
** Debug Interface
44
** See Copyright Notice in lua.h
55
*/
@@ -51,7 +51,7 @@ static int currentpc (CallInfo *ci) {
5151
/*
5252
** Get a "base line" to find the line corresponding to an instruction.
5353
** For that, search the array of absolute line info for the largest saved
54-
** instruction smaller or equal to the wanted instrution. A special
54+
** instruction smaller or equal to the wanted instruction. A special
5555
** case is when there is no absolute info or the instruction is before
5656
** the first absolute one.
5757
*/

lgc.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lgc.c,v 2.236 2017/10/31 15:29:28 roberto Exp $
2+
** $Id: lgc.c,v 2.238 2017/11/07 13:25:26 roberto Exp roberto $
33
** Garbage Collector
44
** See Copyright Notice in lua.h
55
*/
@@ -507,7 +507,7 @@ static lu_mem traversetable (global_State *g, Table *h) {
507507
** mode, check the generational invariant. If the cache is old,
508508
** everything is ok. If the prototype is 'old0', everything
509509
** is ok too. (It will naturally be visited again.) If the
510-
** prototype is older than 'old0', then its cache (whith is new)
510+
** prototype is older than 'old0', then its cache (which is new)
511511
** must be visited again in the next collection, so the prototype
512512
** goes to the 'protogray' list. (If the prototype has a cache,
513513
** it is already immutable and does not need other barriers;
@@ -1195,7 +1195,7 @@ static void entergen (lua_State *L, global_State *g) {
11951195
luaC_runtilstate(L, bitmask(GCSpause)); /* prepare to start a new cycle */
11961196
luaC_runtilstate(L, bitmask(GCSpropagate)); /* start new cycle */
11971197
atomic(L);
1198-
/* sweep all ellements making them old */
1198+
/* sweep all elements making them old */
11991199
sweep2old(L, &g->allgc);
12001200
/* everything alive now is old */
12011201
g->reallyold = g->old = g->survival = g->allgc;

lobject.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lobject.c,v 2.119 2017/11/08 14:50:23 roberto Exp roberto $
2+
** $Id: lobject.c,v 2.120 2017/11/16 13:19:06 roberto Exp roberto $
33
** Some generic functions over Lua objects
44
** See Copyright Notice in lua.h
55
*/
@@ -272,7 +272,7 @@ static const char *l_str2dloc (const char *s, lua_Number *result, int mode) {
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
275-
** mark. If the convertion fails, it may mean number has a dot but
275+
** mark. If the conversion fails, it may mean number has a dot but
276276
** locale accepts something else. In that case, the code copies 's'
277277
** to a buffer (because 's' is read-only), changes the dot to the
278278
** current locale radix mark, and tries to convert again.

lobject.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lobject.h,v 2.125 2017/06/29 15:06:44 roberto Exp $
2+
** $Id: lobject.h,v 2.130 2017/11/07 13:25:26 roberto Exp roberto $
33
** Type definitions for Lua objects
44
** See Copyright Notice in lua.h
55
*/
@@ -529,7 +529,7 @@ typedef union Closure {
529529

530530
/*
531531
** Nodes for Hash tables. A pack of two TValue's (key-value pairs)
532-
** plus a 'next' field to link colliding entries. The distribuition
532+
** plus a 'next' field to link colliding entries. The distribution
533533
** of the key's fields ('key_tt' and 'key_val') not forming a proper
534534
** 'TValue' allows for a smaller size for 'Node' both in 4-byte
535535
** and 8-byte alignments.

lstring.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lstring.h,v 1.61 2015/11/03 15:36:01 roberto Exp roberto $
2+
** $Id: lstring.h,v 1.62 2017/07/27 13:50:16 roberto Exp roberto $
33
** String table (keep all strings handled by Lua)
44
** See Copyright Notice in lua.h
55
*/
@@ -14,7 +14,7 @@
1414

1515
/*
1616
** Memory-allocation error message must be preallocated (it cannot
17-
** be created after memory is exausted)
17+
** be created after memory is exhausted)
1818
*/
1919
#define MEMERRMSG "not enough memory"
2020

lstrlib.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: lstrlib.c,v 1.258 2017/11/08 14:50:23 roberto Exp roberto $
2+
** $Id: lstrlib.c,v 1.259 2017/11/16 13:19:06 roberto Exp roberto $
33
** Standard library for string operations and pattern-matching
44
** See Copyright Notice in lua.h
55
*/
@@ -1117,7 +1117,7 @@ static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
11171117
else { /* integers */
11181118
lua_Integer n = lua_tointeger(L, arg);
11191119
const char *format = (n == LUA_MININTEGER) /* corner case? */
1120-
? "0x%" LUA_INTEGER_FRMLEN "x" /* use hexa */
1120+
? "0x%" LUA_INTEGER_FRMLEN "x" /* use hex */
11211121
: LUA_INTEGER_FMT; /* else use default format */
11221122
nb = l_sprintf(buff, MAX_ITEM, format, (LUAI_UACINT)n);
11231123
}

ltable.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** $Id: ltable.c,v 2.125 2017/06/29 15:06:44 roberto Exp roberto $
2+
** $Id: ltable.c,v 2.126 2017/11/08 14:50:23 roberto Exp roberto $
33
** Lua tables (hash)
44
** See Copyright Notice in lua.h
55
*/
@@ -685,7 +685,7 @@ static lua_Unsigned hash_search (Table *t, lua_Unsigned j) {
685685
** First, try the array part: if there is an array part and its last
686686
** element is nil, there must be a boundary there; a binary search
687687
** finds that boundary. Otherwise, if the hash part is empty or does not
688-
** contain 'j + 1', 'j' is a boundary. Othersize, call 'hash_search'
688+
** contain 'j + 1', 'j' is a boundary. Otherwize, call 'hash_search'
689689
** to find a boundary in the hash part.
690690
*/
691691
lua_Unsigned luaH_getn (Table *t) {

0 commit comments

Comments
 (0)