diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-10-30 23:27:51 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-11-02 21:02:25 +0200 |
commit | 23ed0e18575075f78009caabedf9e6246d440dde (patch) | |
tree | ea8c782fc49c1436d63621826c8d6cb17121c8af /docs/markdown/snippets | |
parent | beb1f00f3bca05a0d9bd30a115da2621f43e2b73 (diff) | |
download | meson-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.md | 15 |
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. |