Skip to content

Commit

Permalink
clarify Base.isidentifier docs (false for operator symbols) (JuliaLan…
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj authored and LilithHafner committed Mar 8, 2022
1 parent 74ddea8 commit 3091948
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ is_id_char(c::AbstractChar) = ccall(:jl_id_char, Cint, (UInt32,), c) != 0
isidentifier(s) -> Bool
Return whether the symbol or string `s` contains characters that are parsed as
a valid identifier in Julia code.
a valid ordinary identifier (not a binary/unary operator) in Julia code;
see also [`Base.isoperator`](@ref).
Internally Julia allows any sequence of characters in a `Symbol` (except `\\0`s),
and macros automatically use variable names containing `#` in order to avoid
Expand Down

0 comments on commit 3091948

Please sign in to comment.