Skip to content

Commit a278bba

Browse files
Pramodh Gopalan VKristofferC
authored andcommitted
REPL: Fix incorrect docstring for .. (#40563) (#40607)
This PR fixes #40563 . This is essentially a mirror of #39975 . Please refer to it for more information. (cherry picked from commit 1a12495)
1 parent 7cb5ce1 commit a278bba

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
@@ -1095,6 +1095,9 @@ end
10951095
# Issue 39427
10961096
@test occursin("does not exist", sprint(show, help_result(":=")))
10971097

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

11001103
# Brief and extended docs (issue #25930)

0 commit comments

Comments
 (0)