summaryrefslogtreecommitdiff
path: root/docs/yaml/objects/dep.yaml
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-07-19 21:50:09 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-07-22 09:05:22 -0700
commit092ab8c9e117cc00aa699c8d513572f95009cae8 (patch)
treef1423cd24212df161a9c45247d3cf78e87737659 /docs/yaml/objects/dep.yaml
parent2b7661a43f8e85d666dd66ecddb85aedb154a58c (diff)
downloadmeson-092ab8c9e117cc00aa699c8d513572f95009cae8.tar.gz
Docs: standardize between list and array as array
When arrays were added they were called arrays. Because the are implemented with Python lists, that language started leaking into talking about Meson types. This is confusing. I've attempted, as much as possible, to move to using one name, array. I picked array because 1) It's the original name used, and 2) what Meson has are more properly arrays as they have a fixed length, while a critical property of lists are the ability to link and unlink them. There are a couple of places where the list language has leaked into the names of keyword arguments. I have not made any attempt to change those, I don't know if it's that useful or not.
Diffstat (limited to 'docs/yaml/objects/dep.yaml')
-rw-r--r--docs/yaml/objects/dep.yaml7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/yaml/objects/dep.yaml b/docs/yaml/objects/dep.yaml
index ffd19f797..fdf5fe505 100644
--- a/docs/yaml/objects/dep.yaml
+++ b/docs/yaml/objects/dep.yaml
@@ -34,11 +34,11 @@ methods:
kwargs:
define_variable:
- type: list[str]
+ type: array[str]
since: 0.44.0
description: |
You can also redefine a
- variable by passing a list to this kwarg
+ variable by passing an array to this kwarg
that can affect the retrieved variable: `['prefix', '/'])`.
*(Since 1.3.0)* Multiple variables can be specified in pairs.
@@ -224,7 +224,7 @@ methods:
description: The default value to return when the variable does not exist
pkgconfig_define:
- type: list[str]
+ type: array[str]
description: See [[dep.get_pkgconfig_variable]]
- name: as_static
@@ -250,4 +250,3 @@ methods:
recursive:
type: bool
description: If true, this is recursively applied to dependencies
- \ No newline at end of file