summaryrefslogtreecommitdiff
path: root/docs/markdown/Syntax.md
diff options
context:
space:
mode:
authorPaul Caprioli <paul@hpkfft.com>2025-03-25 20:49:27 -0700
committerEli Schwartz <eschwartz93@gmail.com>2025-03-26 00:08:42 -0400
commit1447fff171a5f6e76f9b56504f4f983a152eda79 (patch)
tree919f314bdbcf3e007d44d7cfc2f9755824e8db10 /docs/markdown/Syntax.md
parentcfb5a48e075ad0da9341b35b24872634784fccf8 (diff)
downloadmeson-1447fff171a5f6e76f9b56504f4f983a152eda79.tar.gz
docs: Clarify string building with absolute paths
Diffstat (limited to 'docs/markdown/Syntax.md')
-rw-r--r--docs/markdown/Syntax.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md
index 59ec5f7ba..05f503880 100644
--- a/docs/markdown/Syntax.md
+++ b/docs/markdown/Syntax.md
@@ -150,6 +150,8 @@ combined = str1 + '_' + str2 # combined is now abc_xyz
You can concatenate any two strings using `/` as an operator to build paths.
This will always use `/` as the path separator on all platforms.
+If any one of the individual segments is an absolute path, all segments before
+it are dropped. For example:
```meson
joined = '/usr/share' / 'projectname' # => /usr/share/projectname