Skip to content

Commit

Permalink
Details [e84f7bf19852c35ad0a1e9a1654a7b99a211e17c]
Browse files Browse the repository at this point in the history
Typos in comments.

Co-Authored-By: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
  • Loading branch information
2 people authored and well-in-that-case committed May 14, 2024
1 parent 53def40 commit 4ec501b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static int dostring (lua_State *L, const char *s, const char *name) {
/*
** Receives 'globname[=modname]' and runs 'globname = require(modname)'.
** If there is no explicit modname and globname contains a '-', cut
** the sufix after '-' (the "version") to make the global name.
** the suffix after '-' (the "version") to make the global name.
*/
static int dolibrary (lua_State *L, char *globname) {
int status;
Expand All @@ -236,7 +236,7 @@ static int dolibrary (lua_State *L, char *globname) {
status = docall(L, 1, 1); /* call 'require(modname)' */
if (status == LUA_OK) {
if (suffix != NULL) /* is there a suffix mark? */
*suffix = '\0'; /* remove sufix from global name */
*suffix = '\0'; /* remove suffix from global name */
lua_setglobal(L, globname); /* globname = require(modname) */
}
return report(L, status);
Expand Down
2 changes: 1 addition & 1 deletion src/luaconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
/*
** LUA_IGMARK is a mark to ignore all after it when building the
** module name (e.g., used to build the luaopen_ function name).
** Typically, the sufix after the mark is the module version,
** Typically, the suffix after the mark is the module version,
** as in "mod-v1.2.so".
*/
#define LUA_IGMARK "-"
Expand Down

0 comments on commit 4ec501b

Please sign in to comment.