summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-04-19 01:10:21 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2019-04-19 01:10:21 +0530
commitc384d5b292ae81e7b970c9f4d837ee6ac66010af (patch)
tree46910d1e089aafa22b93e27a8162abc39ebc5d51
parent344401304aad4f08be1e0c1c4fa3b4b0bec8ffc3 (diff)
downloadmeson-nirbheek/fix-docs-skipping.tar.gz
docs: Explicitly document that += on dicts is immutablenirbheek/fix-docs-skipping
This commit is mostly to test the new docs-only CI workflow.
-rw-r--r--docs/markdown/Reference-manual.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 056612dc9..227a4bbcc 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -2014,7 +2014,9 @@ statement](Syntax.md#foreach-statements).
Dictionaries are available since 0.47.0.
Since 0.48.0 dictionaries can be added (e.g. `d1 = d2 + d3` and `d1 += d2`).
-Values from the second dictionary overrides values from the first.
+Values from the second dictionary overrides values from the first. Note that
+the `+=` operator does not edit the dictionary in-place; it will create a new
+object and assign it to the left-hand-side, i.e., dictionaries are immutable.
## Returned objects