From 1447fff171a5f6e76f9b56504f4f983a152eda79 Mon Sep 17 00:00:00 2001 From: Paul Caprioli Date: Tue, 25 Mar 2025 20:49:27 -0700 Subject: docs: Clarify string building with absolute paths --- docs/markdown/Syntax.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs/markdown/Syntax.md') 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 -- cgit v1.2.3