diff options
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') |