1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-09 08:15:41 +02:00

style-guide: adjust mandatory slash style (#17499)

This commit is contained in:
Managor 2025-08-06 18:54:34 +03:00 committed by GitHub
parent 7be81b0603
commit 16c47eed2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -468,8 +468,8 @@ Keep the following guidelines in mind when choosing placeholders:
except when the location is implicit.
- When the path cannot be relative
and has to start at the root of the filesystem,
prefix it with a slash,
such as `get {{/path/to/remote_file}}`.
prefix it with a slash outside the placeholder,
such as `get /{{path/to/remote_file}}`.
- In case of a possible reference both to a file or a directory,
use `{{path/to/file_or_directory}}`.