Skip to content

Commit e84f7bf

Browse files
committed
Details
Typos in comments.
1 parent dfbde4c commit e84f7bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lua.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static int dostring (lua_State *L, const char *s, const char *name) {
211211
/*
212212
** Receives 'globname[=modname]' and runs 'globname = require(modname)'.
213213
** If there is no explicit modname and globname contains a '-', cut
214-
** the sufix after '-' (the "version") to make the global name.
214+
** the suffix after '-' (the "version") to make the global name.
215215
*/
216216
static int dolibrary (lua_State *L, char *globname) {
217217
int status;
@@ -230,7 +230,7 @@ static int dolibrary (lua_State *L, char *globname) {
230230
status = docall(L, 1, 1); /* call 'require(modname)' */
231231
if (status == LUA_OK) {
232232
if (suffix != NULL) /* is there a suffix mark? */
233-
*suffix = '\0'; /* remove sufix from global name */
233+
*suffix = '\0'; /* remove suffix from global name */
234234
lua_setglobal(L, globname); /* globname = require(modname) */
235235
}
236236
return report(L, status);

luaconf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
/*
262262
** LUA_IGMARK is a mark to ignore all after it when building the
263263
** module name (e.g., used to build the luaopen_ function name).
264-
** Typically, the sufix after the mark is the module version,
264+
** Typically, the suffix after the mark is the module version,
265265
** as in "mod-v1.2.so".
266266
*/
267267
#define LUA_IGMARK "-"

0 commit comments

Comments
 (0)