Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lang-guide/chapters/types/other_types/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

1. `path` is technically a "syntax shape" rather than a full "type".
It is used for annotating strings that should be treated as a path to a filename or directory.
`~` and `.` characters in the string will automatically be expanded treated as a `path`.
`~` and `...` characters in the string will automatically be expanded treated as a `path`.

Example:

Expand All @@ -27,9 +27,6 @@

# Results
cd ~/testing
show_difference . .
# => The path is expanded: /home/username/testing
# => The string is not: .
show_difference ~ ~
# => The path is expanded: /home/username
# => The string is not: ~
Expand Down