Skip to content

Commit 8e31621

Browse files
authored
Format charlists as ~c sigils in doc (#13842)
1 parent 357793a commit 8e31621

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/elixir/lib/code/fragment.ex

+5-5
Original file line numberDiff line numberDiff line change
@@ -562,13 +562,13 @@ defmodule Code.Fragment do
562562
`local_call`/`local_arity` and `local_or_var`, since the latter can
563563
be a local or variable
564564
565-
* `@` when not followed by any identifier is returned as `{:operator, '@'}`
566-
(in contrast to `{:module_attribute, ''}` in `cursor_context/2`
565+
* `@` when not followed by any identifier is returned as `{:operator, ~c"@"}`
566+
(in contrast to `{:module_attribute, ~c""}` in `cursor_context/2`
567567
568-
* This function never returns empty sigils `{:sigil, ''}` or empty structs
569-
`{:struct, ''}` as context
568+
* This function never returns empty sigils `{:sigil, ~c""}` or empty structs
569+
`{:struct, ~c""}` as context
570570
571-
* This function returns keywords as `{:keyword, 'do'}`
571+
* This function returns keywords as `{:keyword, ~c"do"}`
572572
573573
* This function never returns `:expr`
574574

0 commit comments

Comments
 (0)