diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-02-13 10:32:27 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-05-22 23:56:50 +0300 |
commit | 44b6ccbe569ec8125f1e95e43a5c449e77a04344 (patch) | |
tree | ec35a5c9756450d30e3a327b795779aec0ca7060 /docs/markdown/Syntax.md | |
parent | 144e7dcf3bed22f4e6faba8334f3f46eedd420d7 (diff) | |
download | meson-44b6ccbe569ec8125f1e95e43a5c449e77a04344.zip meson-44b6ccbe569ec8125f1e95e43a5c449e77a04344.tar.gz meson-44b6ccbe569ec8125f1e95e43a5c449e77a04344.tar.bz2 |
join_paths => / [skip ci]
Diffstat (limited to 'docs/markdown/Syntax.md')
-rw-r--r-- | docs/markdown/Syntax.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index aadb14a..7802b92 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -214,12 +214,12 @@ pathsep = ':' path = pathsep.join(['/usr/bin', '/bin', '/usr/local/bin']) # path now has the value '/usr/bin:/bin:/usr/local/bin' -# For joining paths, you should use join_paths() +# For joining path elements, you should use path1 / path2 # This has the advantage of being cross-platform -path = join_paths(['/usr', 'local', 'bin']) +path = '/usr' / 'local' / 'bin' # path now has the value '/usr/local/bin' -# Don't use join_paths for sources files, use files for that: +# For sources files, use files(): my_sources = files('foo.c') ... my_sources += files('bar.c') |