From 7a28056921ea81a4c93d3249495866605a913d5c Mon Sep 17 00:00:00 2001 From: Antonin Décimo Date: Sat, 9 Feb 2019 14:12:10 +0100 Subject: Fix small misspellings (#957) --- install.bat | 4 ++-- src/luarocks/build/builtin.lua | 2 +- src/luarocks/build/cmake.lua | 2 +- src/luarocks/build/command.lua | 2 +- src/luarocks/build/make.lua | 2 +- src/luarocks/cmd/help.lua | 2 +- src/luarocks/core/cfg.lua | 2 +- src/luarocks/core/util.lua | 2 +- src/luarocks/fs.lua | 2 +- src/luarocks/fs/lua.lua | 6 +++--- src/luarocks/fs/win32/tools.lua | 2 +- src/luarocks/tools/patch.lua | 2 +- win32/lua5.1/include/luaconf.h | 2 +- win32/pe-parser.lua | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) diff --git a/install.bat b/install.bat index 9aef7941..a98b32fd 100644 --- a/install.bat +++ b/install.bat @@ -520,7 +520,7 @@ local function get_msvc_env_setup_cmd() end -- try vcvarsall.bat in case MS changes the undocumented bat files above. - -- but this way we don't konw if specified compiler is installed... + -- but this way we don't know if specified compiler is installed... local vcvarsall = vcdir .. 'vcvarsall.bat' if exists(vcvarsall) then local vcvarsall_args = { x86 = "", x86_64 = " amd64" } @@ -1126,7 +1126,7 @@ end -- *********************************************************** -- Cleanup -- *********************************************************** --- remove regsitry related files, no longer needed +-- remove registry related files, no longer needed exec( S[[del "$PREFIX\LuaRocks.reg.*" >NUL]] ) -- *********************************************************** diff --git a/src/luarocks/build/builtin.lua b/src/luarocks/build/builtin.lua index f2b74399..9d8564b2 100644 --- a/src/luarocks/build/builtin.lua +++ b/src/luarocks/build/builtin.lua @@ -147,7 +147,7 @@ end --- Driver function for the builtin build back-end. -- @param rockspec table: the loaded rockspec. --- @return boolean or (nil, string): true if no errors ocurred, +-- @return boolean or (nil, string): true if no errors occurred, -- nil and an error message otherwise. function builtin.run(rockspec) assert(rockspec:type() == "rockspec") diff --git a/src/luarocks/build/cmake.lua b/src/luarocks/build/cmake.lua index e5db695c..0bf44dda 100644 --- a/src/luarocks/build/cmake.lua +++ b/src/luarocks/build/cmake.lua @@ -8,7 +8,7 @@ local cfg = require("luarocks.core.cfg") --- Driver function for the "cmake" build back-end. -- @param rockspec table: the loaded rockspec. --- @return boolean or (nil, string): true if no errors ocurred, +-- @return boolean or (nil, string): true if no errors occurred, -- nil and an error message otherwise. function cmake.run(rockspec) assert(rockspec:type() == "rockspec") diff --git a/src/luarocks/build/command.lua b/src/luarocks/build/command.lua index 2016de8b..755a39d2 100644 --- a/src/luarocks/build/command.lua +++ b/src/luarocks/build/command.lua @@ -8,7 +8,7 @@ local cfg = require("luarocks.core.cfg") --- Driver function for the "command" build back-end. -- @param rockspec table: the loaded rockspec. --- @return boolean or (nil, string): true if no errors ocurred, +-- @return boolean or (nil, string): true if no errors occurred, -- nil and an error message otherwise. function command.run(rockspec) assert(rockspec:type() == "rockspec") diff --git a/src/luarocks/build/make.lua b/src/luarocks/build/make.lua index 22b8628b..5df3050d 100644 --- a/src/luarocks/build/make.lua +++ b/src/luarocks/build/make.lua @@ -36,7 +36,7 @@ end --- Driver function for the "make" build back-end. -- @param rockspec table: the loaded rockspec. --- @return boolean or (nil, string): true if no errors ocurred, +-- @return boolean or (nil, string): true if no errors occurred, -- nil and an error message otherwise. function make.run(rockspec) assert(rockspec:type() == "rockspec") diff --git a/src/luarocks/cmd/help.lua b/src/luarocks/cmd/help.lua index d5423ed8..adcb9881 100644 --- a/src/luarocks/cmd/help.lua +++ b/src/luarocks/cmd/help.lua @@ -74,7 +74,7 @@ function help.command(description, commands, command) print_section("VARIABLES") util.printout([[ Variables from the "variables" table of the configuration file - can be overriden with VAR=VALUE assignments.]]) + can be overridden with VAR=VALUE assignments.]]) print_section("COMMANDS") for name, modname in util.sortedpairs(commands) do local cmd = require(modname) diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua index f93e67a7..399912d5 100644 --- a/src/luarocks/core/cfg.lua +++ b/src/luarocks/core/cfg.lua @@ -137,7 +137,7 @@ do end -- Load config file and merge its contents into the `cfg` module table. - -- @return filepath of succesfully loaded file or nil if it failed + -- @return filepath of successfully loaded file or nil if it failed load_config_file = function(cfg, platforms, filepath) local result, err, errcode = persist.load_into_table(filepath, env_for_config_file(cfg, platforms)) if (not result) and errcode ~= "open" then diff --git a/src/luarocks/core/util.lua b/src/luarocks/core/util.lua index 8789851c..1499dc62 100644 --- a/src/luarocks/core/util.lua +++ b/src/luarocks/core/util.lua @@ -42,7 +42,7 @@ end -- Formats tables with cycles recursively to any depth. -- References to other tables are shown as values. -- Self references are indicated. --- The string returned is "Lua code", which can be procesed +-- The string returned is "Lua code", which can be processed -- (in the case in which indent is composed by spaces or "--"). -- Userdata and function keys and values are shown as strings, -- which logically are exactly not equivalent to the original code. diff --git a/src/luarocks/fs.lua b/src/luarocks/fs.lua index ad439ccf..8122525e 100644 --- a/src/luarocks/fs.lua +++ b/src/luarocks/fs.lua @@ -64,7 +64,7 @@ do end if not cfg.each_platform then - error("cfg is not initalized, please run cfg.init() first") + error("cfg is not initialized, please run cfg.init() first") end -- Load platform-specific functions diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 43a636fb..0976dc8d 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua @@ -291,7 +291,7 @@ function fs_lua.change_dir_to_root() end --- Change working directory to the previous in the dir stack. --- @return true if a pop ocurred, false if the stack was empty. +-- @return true if a pop occurred, false if the stack was empty. function fs_lua.pop_dir() local d = table.remove(dir_stack) if d then @@ -549,7 +549,7 @@ function fs_lua.find(at) return result end ---- Test for existance of a file. +--- Test for existence of a file. -- @param file string: filename to test -- @return boolean: true if file exists, false otherwise. function fs_lua.exists(file) @@ -1071,7 +1071,7 @@ function fs_lua.check_command_permissions(flags) end --- Check whether a file is a Lua script --- When the file can be succesfully compiled by the configured +-- When the file can be successfully compiled by the configured -- Lua interpreter, it's considered to be a valid Lua file. -- @param filename filename of file to check -- @return boolean true, if it is a Lua script, false otherwise diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 69512c9e..0fd73205 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua @@ -292,7 +292,7 @@ function tools.set_permissions(filename, mode, scope) return true end ---- Test for existance of a file. +--- Test for existence of a file. -- @param file string: filename to test -- @return boolean: true if file exists, false otherwise. function tools.exists(file) diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua index b46bd1d0..829df931 100644 --- a/src/luarocks/tools/patch.lua +++ b/src/luarocks/tools/patch.lua @@ -3,7 +3,7 @@ -- http://lua-users.org/wiki/LuaPatch -- -- (c) 2008 David Manura, Licensed under the same terms as Lua (MIT license). --- Code is heavilly based on the Python-based patch.py version 8.06-1 +-- Code is heavily based on the Python-based patch.py version 8.06-1 -- Copyright (c) 2008 rainforce.org, MIT License -- Project home: http://code.google.com/p/python-patch/ . -- Version 0.1 diff --git a/win32/lua5.1/include/luaconf.h b/win32/lua5.1/include/luaconf.h index 05354175..47bad73f 100644 --- a/win32/lua5.1/include/luaconf.h +++ b/win32/lua5.1/include/luaconf.h @@ -47,7 +47,7 @@ /* -@@ LUA_USE_POSIX includes all functionallity listed as X/Open System +@@ LUA_USE_POSIX includes all functionality listed as X/Open System @* Interfaces Extension (XSI). ** CHANGE it (define it) if your system is XSI compatible. */ diff --git a/win32/pe-parser.lua b/win32/pe-parser.lua index 34556812..1aff7107 100644 --- a/win32/pe-parser.lua +++ b/win32/pe-parser.lua @@ -416,7 +416,7 @@ M.parse = function(target) name = "Characteristics"}, }, f) end - -- we now have section data, so add RVA convertion method + -- we now have section data, so add RVA conversion method out.get_fileoffset = M.get_fileoffset -- get the import table -- cgit v1.2.3-55-g6feb