aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-10-13 21:14:29 +0200
committerWilliam Boman <william@redwill.se>2025-02-19 09:23:19 +0100
commitae208dc380808ff1aef39929a0e897e881571d43 (patch)
treeb9044cec7223062db69998189c76f8163ac9d58b /doc
parentfix(location): use correct registry path (diff)
downloadmason-ae208dc380808ff1aef39929a0e897e881571d43.tar
mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.gz
mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.bz2
mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.lz
mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.xz
mason-ae208dc380808ff1aef39929a0e897e881571d43.tar.zst
mason-ae208dc380808ff1aef39929a0e897e881571d43.zip
refactor: standardize constructors and improve inheritance construction
Diffstat (limited to 'doc')
-rw-r--r--doc/reference.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/reference.md b/doc/reference.md
index ef00425c..23eb306c 100644
--- a/doc/reference.md
+++ b/doc/reference.md
@@ -32,7 +32,7 @@ RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as de
- [`Package.Lang`](#packagelang)
- [`Package.Cat`](#packagecat)
- [`Package.License`](#packagelicense)
- - [`Package.new({spec})`](#packagenewspec)
+ - [`Package:new({spec})`](#packagenewspec)
- [`Package.spec`](#packagespec)
- [`Package:is_installing()`](#packageis_installing)
- [`Package:install({opts?}, {callback?})`](#packageinstallopts-callback)
@@ -184,7 +184,7 @@ Package.Cat = {
Similar as [`Package.Lang`](#packagelang) but for SPDX license identifiers.
-### `Package.new({spec})`
+### `Package:new({spec})`
**Parameters:**
@@ -312,7 +312,7 @@ The `.stdio_sink` property can be used to send stdout or stderr output, to be pr
Example:
```lua
-Pkg.new {
+local pkg = Pkg:new {
--- ...
---@async
---@param ctx InstallContext
@@ -339,7 +339,7 @@ registered with the relevant `InstallHandle`.
Example usage:
```lua
-Pkg.new {
+local pkg = Pkg:new {
--- ...
---@async
---@param ctx InstallContext