From 5be2cbb0ecb7e554a9fd73ea3faee6924d60ea72 Mon Sep 17 00:00:00 2001 From: Jan Klass Date: Sat, 11 Jul 2026 17:58:14 +0200 Subject: [PATCH] Fix path type code demonstration `.` does not get expanded tested in current 0.114.0 and reported in #2155 for 0.112.2 Resolves #2155 On Windows `...` gets expanded to `..\..`. I have not tested on Linux, so I leave the `...` example as-is. --- lang-guide/chapters/types/other_types/path.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lang-guide/chapters/types/other_types/path.md b/lang-guide/chapters/types/other_types/path.md index 7dcc10d6149..f45cd06f5b4 100644 --- a/lang-guide/chapters/types/other_types/path.md +++ b/lang-guide/chapters/types/other_types/path.md @@ -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: @@ -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: ~