From 23ed0e18575075f78009caabedf9e6246d440dde Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 30 Oct 2018 23:27:51 +0200 Subject: Make string division do path joining. --- docs/markdown/snippets/pathdivision.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/markdown/snippets/pathdivision.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1