aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-10-30 23:27:51 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-11-02 21:02:25 +0200
commit23ed0e18575075f78009caabedf9e6246d440dde (patch)
treeea8c782fc49c1436d63621826c8d6cb17121c8af /docs/markdown/snippets
parentbeb1f00f3bca05a0d9bd30a115da2621f43e2b73 (diff)
downloadmeson-23ed0e18575075f78009caabedf9e6246d440dde.zip
meson-23ed0e18575075f78009caabedf9e6246d440dde.tar.gz
meson-23ed0e18575075f78009caabedf9e6246d440dde.tar.bz2
Make string division do path joining.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/pathdivision.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/snippets/pathdivision.md b/docs/markdown/snippets/pathdivision.md
new file mode 100644
index 0000000..6da6005
--- /dev/null
+++ b/docs/markdown/snippets/pathdivision.md
@@ -0,0 +1,15 @@
+## Joining paths with /
+
+Joining two paths has traditionally been done with the `join_paths` function.
+
+```meson
+joined = join_paths('foo', 'bar')
+```
+
+Now you can use the simpler notation using the `/` operator.
+
+```meson
+joined = 'foo' / 'bar'
+```
+
+This only works for strings.