Skip to content

Commit 77a99af

Browse files
Pramodh Gopalan Vjohanmon
authored andcommitted
REPL: Fix incorrect docstring for .. (JuliaLang#40563) (JuliaLang#40607)
This PR fixes JuliaLang#40563 . This is essentially a mirror of JuliaLang#39975 . Please refer to it for more information.
1 parent 15029da commit 77a99af

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

stdlib/REPL/src/docview.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function lookup_doc(ex)
224224
op = str[1:end-1]
225225
eq = isdotted ? ".=" : "="
226226
return Markdown.parse("`x $op= y` is a synonym for `x $eq x $op y`")
227-
elseif isdotted
227+
elseif isdotted && ex !== :(..)
228228
op = str[2:end]
229229
return Markdown.parse("`x $ex y` is akin to `broadcast($op, x, y)`. See [`broadcast`](@ref).")
230230
end

stdlib/REPL/test/repl.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,9 @@ end
10961096
# Issue 39427
10971097
@test occursin("does not exist", sprint(show, help_result(":=")))
10981098

1099+
# Issue #40563
1100+
@test occursin("does not exist", sprint(show, help_result("..")))
1101+
10991102
# Issue #25930
11001103

11011104
# Brief and extended docs (issue #25930)

0 commit comments

Comments
 (0)