We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667c883 commit 92765adCopy full SHA for 92765ad
stdlib/REPL/src/docview.jl
@@ -221,7 +221,7 @@ function lookup_doc(ex)
221
str = string(ex)
222
isdotted = startswith(str, ".")
223
if endswith(str, "=") && Base.operator_precedence(ex) == Base.prec_assignment && ex !== :(:=)
224
- op = str[1:end-1]
+ op = chop(str)
225
eq = isdotted ? ".=" : "="
226
return Markdown.parse("`x $op= y` is a synonym for `x $eq x $op y`")
227
elseif isdotted && ex !== :(..)
stdlib/REPL/test/docview.jl
@@ -27,3 +27,7 @@ end
27
# https://github.com/JuliaLang/julia/issues/37757
28
@test REPL.insert_hlines(IOBuffer(), nothing) === nothing
29
end
30
+
31
+@testset "Unicode doc lookup (#41589)" begin
32
+ @test REPL.lookup_doc(:(÷=)) isa Markdown.MD
33
+end
0 commit comments