diff options
| author | ruki <[email protected]> | 2026-03-23 23:54:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-23 23:54:20 +0800 |
| commit | 7bf56c079214f65d5de92e4bd2cc58d969694477 (patch) | |
| tree | 9948e70666bea83d1f112f80a23e8c7a1f8a9d92 /xmake/core/base | |
| parent | 9659e157cd39571cfdd264ce8a2743b9a99175dc (diff) | |
fix some typos
Diffstat (limited to 'xmake/core/base')
| -rw-r--r-- | xmake/core/base/os.lua | 4 | ||||
| -rw-r--r-- | xmake/core/base/path.lua | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua index 1766d28f5..142ddd338 100644 --- a/xmake/core/base/os.lua +++ b/xmake/core/base/os.lua @@ -1537,7 +1537,7 @@ function os.addenv(name, ...) end end --- set values to environment variable with the given seperator +-- set values to environment variable with the given separator function os.setenvp(name, values, sep) sep = sep or path.envsep() local ok = os._setenv(name, table.concat(table.wrap(values), sep)) @@ -1547,7 +1547,7 @@ function os.setenvp(name, values, sep) return ok end --- add values to environment variable with the given seperator +-- add values to environment variable with the given separator function os.addenvp(name, values, sep) sep = sep or path.envsep() values = table.wrap(values) diff --git a/xmake/core/base/path.lua b/xmake/core/base/path.lua index 9dc2ecd7d..5af6daec9 100644 --- a/xmake/core/base/path.lua +++ b/xmake/core/base/path.lua @@ -299,7 +299,7 @@ function path.split(p) return p:split("[/\\]") end --- get the path seperator +-- get the path separator function path.sep() local sep = path._SEP if not sep then @@ -309,7 +309,7 @@ function path.sep() return sep end --- get the path seperator of environment variable +-- get the path separator of environment variable function path.envsep() local envsep = path._ENVSEP if not envsep then @@ -379,7 +379,7 @@ function path.joinenv(paths, envsep) end end --- the last character is the path seperator? +-- the last character is the path separator? function path.islastsep(p) p = tostring(p) local sep = p:sub(#p, #p) |
