summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-13 00:48:25 +0800
committerruki <[email protected]>2026-02-13 00:48:25 +0800
commit5b12d4c7d69e7152e0650da25bf81ac46b18d2f2 (patch)
tree0bfe1939a3319142d99db60f56f7ccc25f26df3d
parent738cd3892cedd30f2fc5291dba8de21e50fbf38f (diff)
fix some typos
-rw-r--r--xmake/core/package/package.lua6
-rw-r--r--xmake/modules/private/action/require/impl/package.lua2
-rw-r--r--xmake/modules/private/action/require/impl/repository.lua2
3 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index ec991a083..6b725c404 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -1625,7 +1625,7 @@ end
-- compute the build hash
function _instance:_compute_buildhash()
- self._BUILDHASH_PREPRARED = true
+ self._BUILDHASH_PREPARED = true
self:buildhash()
end
@@ -1639,7 +1639,7 @@ end
function _instance:buildhash()
local buildhash = self._BUILDHASH
if buildhash == nil then
- if not self._BUILDHASH_PREPRARED then
+ if not self._BUILDHASH_PREPARED then
os.raise("package:buildhash() must be called after loading package")
end
local function _get_buildhash(configs, opt)
@@ -2783,7 +2783,7 @@ function package.targetplat()
return plat
end
--- get global target architecture of pacakge
+-- get global target architecture of package
function package.targetarch()
local arch = package._memcache():get("target_arch")
if arch == nil then
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua
index 7cd26e55f..4e2d70e5f 100644
--- a/xmake/modules/private/action/require/impl/package.lua
+++ b/xmake/modules/private/action/require/impl/package.lua
@@ -912,7 +912,7 @@ function _load_package(packagename, requireinfo, opt)
end
end
- -- strip trailng ~tag, e.g. zlib~debug
+ -- strip trailing ~tag, e.g. zlib~debug
local displayname
if packagename:find('~', 1, true) then
displayname = packagename
diff --git a/xmake/modules/private/action/require/impl/repository.lua b/xmake/modules/private/action/require/impl/repository.lua
index c118284d2..ba0c9205f 100644
--- a/xmake/modules/private/action/require/impl/repository.lua
+++ b/xmake/modules/private/action/require/impl/repository.lua
@@ -153,7 +153,7 @@ end
-- get package directory from repositories
function packagedir(packagename, opt)
- -- strip trailng ~tag, e.g. zlib~debug
+ -- strip trailing ~tag, e.g. zlib~debug
opt = opt or {}
packagename = packagename:lower()
if packagename:find('~', 1, true) then