Skip to content

Commit 955beb6

Browse files
authored
fix doctests broken by 36134 (#36512)
* fix doctests broken by 36134
1 parent 30b09df commit 955beb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/src/manual/constructors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ ERROR: MethodError: no method matching SummedArray(::Vector{Int32}, ::Int32)
552552
Closest candidates are:
553553
SummedArray(::Vector{T}) where T at none:4
554554
Stacktrace:
555-
[1] top-level scope at none:1
555+
[...]
556556
```
557557

558558
This constructor will be invoked by the syntax `SummedArray(a)`. The syntax `new{T,S}` allows

doc/src/manual/methods.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ ERROR: MethodError: no method matching myappend(::Vector{Int64}, ::Float64)
336336
Closest candidates are:
337337
myappend(::Vector{T}, !Matched::T) where T at none:1
338338
Stacktrace:
339-
[1] top-level scope at none:1
339+
[...]
340340
341341
julia> myappend([1.0,2.0,3.0],4.0)
342342
4-element Vector{Float64}:
@@ -350,7 +350,7 @@ ERROR: MethodError: no method matching myappend(::Vector{Float64}, ::Int64)
350350
Closest candidates are:
351351
myappend(::Vector{T}, !Matched::T) where T at none:1
352352
Stacktrace:
353-
[1] top-level scope at none:1
353+
[...]
354354
```
355355

356356
As you can see, the type of the appended element must match the element type of the vector it

0 commit comments

Comments
 (0)