fs: correct docs

pull/6150/head
Michael Hirsch, Ph.D 6 years ago
parent a320274179
commit 5db3f8ac3d
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 8
      docs/markdown/Fs-module.md

@ -69,28 +69,28 @@ It allows changing the filename suffix like:
```meson ```meson
original = '/opt/foo.ini' original = '/opt/foo.ini'
new = fs.with_suffix('.txt') # /opt/foo.txt new = fs.with_suffix(original, '.txt') # /opt/foo.txt
``` ```
#### add suffix #### add suffix
```meson ```meson
original = '/opt/foo' original = '/opt/foo'
new = fs.with_suffix('.txt') # /opt/foo.txt new = fs.with_suffix(original, '.txt') # /opt/foo.txt
``` ```
#### compound suffix swap #### compound suffix swap
```meson ```meson
original = '/opt/foo.dll.a' original = '/opt/foo.dll.a'
new = fs.with_suffix('.so') # /opt/foo.dll.so new = fs.with_suffix(original, '.so') # /opt/foo.dll.so
``` ```
#### delete suffix #### delete suffix
```meson ```meson
original = '/opt/foo.dll.a' original = '/opt/foo.dll.a'
new = fs.with_suffix('') # /opt/foo.dll new = fs.with_suffix(original, '') # /opt/foo.dll
``` ```
The files need not actually exist yet for this method, as it's just string manipulation. The files need not actually exist yet for this method, as it's just string manipulation.
Loading…
Cancel
Save