Skip to content

Commit

Permalink
fix doctests broken by 36134 (#36512)
Browse files Browse the repository at this point in the history
* fix doctests broken by 36134
  • Loading branch information
simeonschaub authored Jul 2, 2020
1 parent 30b09df commit 955beb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/src/manual/constructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ ERROR: MethodError: no method matching SummedArray(::Vector{Int32}, ::Int32)
Closest candidates are:
SummedArray(::Vector{T}) where T at none:4
Stacktrace:
[1] top-level scope at none:1
[...]
```

This constructor will be invoked by the syntax `SummedArray(a)`. The syntax `new{T,S}` allows
Expand Down
4 changes: 2 additions & 2 deletions doc/src/manual/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ ERROR: MethodError: no method matching myappend(::Vector{Int64}, ::Float64)
Closest candidates are:
myappend(::Vector{T}, !Matched::T) where T at none:1
Stacktrace:
[1] top-level scope at none:1
[...]
julia> myappend([1.0,2.0,3.0],4.0)
4-element Vector{Float64}:
Expand All @@ -350,7 +350,7 @@ ERROR: MethodError: no method matching myappend(::Vector{Float64}, ::Int64)
Closest candidates are:
myappend(::Vector{T}, !Matched::T) where T at none:1
Stacktrace:
[1] top-level scope at none:1
[...]
```

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

0 comments on commit 955beb6

Please sign in to comment.