From e84f7bf19852c35ad0a1e9a1654a7b99a211e17c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 13 May 2024 13:23:45 -0300 Subject: Details Typos in comments. --- lua.c | 4 ++-- luaconf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua.c b/lua.c index 3af5ce6a..af1f6a3e 100644 --- a/lua.c +++ b/lua.c @@ -211,7 +211,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; @@ -230,7 +230,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); diff --git a/luaconf.h b/luaconf.h index acebe29c..33bb580d 100644 --- a/luaconf.h +++ b/luaconf.h @@ -261,7 +261,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 "-" -- cgit v1.2.3-55-g6feb