Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dundargoc committed Feb 5, 2025
1 parent 657a08f commit b0adbe3
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .ci/setup_lua.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ lua -v

LUAROCKS_BASE=luarocks-$LUAROCKS

# retry 5 times, connection to luarocks.org seems to timeout occassionally
# retry 5 times, connection to luarocks.org seems to timeout occasionally
curl --silent --location --retry 5 "https://luarocks.org/releases/$LUAROCKS_BASE.tar.gz" | tar xz

cd "$LUAROCKS_BASE"
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ endif (NOT WITH_LUA_ENGINE)

if (NOT LUA_BUILD_TYPE)
set(LUA_BUILD_TYPE "Static"
CACHE STRING "Build Lua/LuaJIT as static, dynamic libary, or use system one" FORCE)
CACHE STRING "Build Lua/LuaJIT as static, dynamic library, or use system one" FORCE)
set_property(CACHE LUA_BUILD_TYPE
PROPERTY STRINGS "Static;Dynamic;System")
endif (NOT LUA_BUILD_TYPE)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ package is good for this.
On OSX, you probably want XCode which comes with `clang` and `make` and friends.

For windows the free Visual Studio Express works. If you get the 2013 edition,
make sure to get the `Windows Deskop` edition. The `Windows` version doesn't
make sure to get the `Windows Desktop` edition. The `Windows` version doesn't
include a working C compiler. Make sure to run all of setup including getting a
free license.

Expand Down
4 changes: 2 additions & 2 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ lowercase option strings are listed below.

In libuv, errors are represented by negative numbered constants. While these
constants are made available in the `uv.errno` table, they are not returned by
luv funtions and the libuv functions used to handle them are not exposed.
luv functions and the libuv functions used to handle them are not exposed.
Instead, if an internal error is encountered, the failing luv function will
return to the caller an assertable `nil, err, name` tuple:

Expand Down Expand Up @@ -3447,7 +3447,7 @@ looked up using the `getprotobyname(3)` function. Examples: `"ip"`, `"icmp"`,
- `port`: `integer` or `nil`
- `family`: `string` or `integer` or `nil`
- `callback`: `callable` (async version) or `nil` (sync version)
- `err`: `nil` or `sring`
- `err`: `nil` or `string`
- `host`: `string` or `nil`
- `service`: `string` or `nil`

Expand Down
4 changes: 2 additions & 2 deletions src/luv.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ typedef int (*luv_CFpcall) (lua_State* L, int nargs, int nresults, int flags);

typedef int (*luv_CFcpcall) (lua_State* L, lua_CFunction func, void* ud, int flags);

/* Default implemention of event callback */
/* Default implementation of event callback */
LUALIB_API int luv_cfpcall(lua_State* L, int nargs, int nresult, int flags);

/* Default implemention of thread entory function */
/* Default implementation of thread entory function */
LUALIB_API int luv_cfcpcall(lua_State* L, lua_CFunction func, void* ud, int flags);

typedef struct {
Expand Down
2 changes: 1 addition & 1 deletion src/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int luv_spawn(lua_State* L) {
}
for (i = 0; i < len; ++i) {
lua_rawgeti(L, -1, i + 1);
// integers are assumed to be file descripters
// integers are assumed to be file descriptors
if (lua_type(L, -1) == LUA_TNUMBER) {
options.stdio[i].flags = UV_INHERIT_FD;
options.stdio[i].data.fd = lua_tointeger(L, -1);
Expand Down
2 changes: 1 addition & 1 deletion tests/manual-test-exit.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--come from https://github.com/luvit/luv/issues/599

-- run `lua manual-test-exit.lua || echo $?`
-- it shoud print `5`
-- it should print `5`

local uv = require('luv')

Expand Down
2 changes: 1 addition & 1 deletion tests/manual-test-external-loop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local thread = uv.new_thread(function(delay)
local t2 = uv.thread_self()
assert(t1:equal(t2))
assert(tostring(t1)==tostring(t2))
_G.print('Runing', uv.thread_self())
_G.print('Running', uv.thread_self())

assert(_THREAD)

Expand Down
8 changes: 4 additions & 4 deletions tests/test-dns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ return require('lib/tap')(function (test)
assert(res[1].port == 80)
end, "1.3.0")

test("Get only ipv4 tcp adresses for luvit.io", function (print, p, expect, uv)
test("Get only ipv4 tcp addresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, {
socktype = "stream",
family = "inet",
Expand All @@ -50,7 +50,7 @@ return require('lib/tap')(function (test)

-- FIXME: this test always fails on Windows/AppVeyor with ENOENT for some reason
if not isWindows then
test("Get only ipv6 tcp adresses for luvit.io", function (print, p, expect, uv)
test("Get only ipv6 tcp addresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, {
socktype = "stream",
family = "inet6",
Expand All @@ -66,7 +66,7 @@ return require('lib/tap')(function (test)
end)
end

test("Get ipv4 and ipv6 tcp adresses for luvit.io", function (print, p, expect, uv)
test("Get ipv4 and ipv6 tcp addresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, {
socktype = "stream",
}, expect(function (err, res)
Expand All @@ -80,7 +80,7 @@ return require('lib/tap')(function (test)
end)))
end)

test("Get all adresses for luvit.io", function (print, p, expect, uv)
test("Get all addresses for luvit.io", function (print, p, expect, uv)
assert(uv.getaddrinfo("luvit.io", nil, nil, expect(function (err, res)
if errorAllowed(err) then
print(err, "skipping")
Expand Down
4 changes: 2 additions & 2 deletions tests/test-thread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ return require('lib/tap')(function (test)
local delay = 100
uv.update_time()
local before = uv.now()
print('Runing', uv.thread_self())
print('Running', uv.thread_self())
uv.sleep(delay)
print('Runing', uv.thread_self())
print('Running', uv.thread_self())
uv.update_time()
local elapsed = uv.now() - before
p({
Expand Down
2 changes: 1 addition & 1 deletion tests/test-udp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ return require('lib/tap')(function (test)
-- TODO This might be overkill, but the multicast
-- tests seem to rely on external interfaces being
-- available on some platforms. So, we use this to skip
-- the tests when there are no relevant exernal interfaces
-- the tests when there are no relevant external interfaces
-- available. Note: The Libuv multicast join test does use this
-- same check for skipping the ipv6 test; we just expanded it to
-- the ipv4 test as well.
Expand Down

0 comments on commit b0adbe3

Please sign in to comment.