Skip to content

Commit 2547a76

Browse files
authored
clarify Base.isidentifier docs (false for operator symbols) (#42266)
1 parent 721932d commit 2547a76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/show.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,8 @@ is_id_char(c::AbstractChar) = ccall(:jl_id_char, Cint, (UInt32,), c) != 0
13151315
isidentifier(s) -> Bool
13161316
13171317
Return whether the symbol or string `s` contains characters that are parsed as
1318-
a valid identifier in Julia code.
1318+
a valid ordinary identifier (not a binary/unary operator) in Julia code;
1319+
see also [`Base.isoperator`](@ref).
13191320
13201321
Internally Julia allows any sequence of characters in a `Symbol` (except `\\0`s),
13211322
and macros automatically use variable names containing `#` in order to avoid

0 commit comments

Comments
 (0)