Skip to content

Commit 46a5c54

Browse files
lukaszsamsonjosevalim
authored andcommitted
Properly escape \ in Path.wildcard docs (#13137)
1 parent 2caacae commit 46a5c54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/path.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,9 @@ defmodule Path do
759759
You may call `Path.expand/1` to normalize the path before invoking
760760
this function.
761761
762-
A character preceded by \ loses its special meaning.
763-
Note that \ must be written as \\ in a string literal.
764-
For example, "\\?*" will match any filename starting with ?.
762+
A character preceded by `\\` loses its special meaning.
763+
Note that `\\` must be written as `\\\\` in a string literal.
764+
For example, `"\\\\?*"` will match any filename starting with `?.`.
765765
766766
By default, the patterns `*` and `?` do not match files starting
767767
with a dot `.`. See the `:match_dot` option in the "Options" section

0 commit comments

Comments
 (0)