File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2136,9 +2136,8 @@ defmodule Macro do
2136
2136
@ doc """
2137
2137
Converts the given argument to a string with the underscore-slash format.
2138
2138
2139
- The argument must either be an atom or a string.
2140
- If an atom is given, it is assumed to be an Elixir module,
2141
- so it is converted to a string and then processed.
2139
+ The argument must either be an atom, representing an Elixir module,
2140
+ or a string representing a module without the `Elixir.` prefix.
2142
2141
2143
2142
This function was designed to format language identifiers/tokens with the underscore-slash format,
2144
2143
that's why it belongs to the `Macro` module. Do not use it as a general
@@ -2172,7 +2171,7 @@ defmodule Macro do
2172
2171
"Foo.Bar"
2173
2172
2174
2173
"""
2175
- @ spec underscore ( module ( ) | atom ( ) | String . t ( ) ) :: String . t ( )
2174
+ @ spec underscore ( atom ( ) | String . t ( ) ) :: String . t ( )
2176
2175
def underscore ( atom_or_string )
2177
2176
2178
2177
def underscore ( atom ) when is_atom ( atom ) do
You can’t perform that action at this time.
0 commit comments