Skip to content

Commit

Permalink
Add more doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Dec 24, 2016
1 parent 7a3fd4e commit fefbd3e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions base/docs/helpdb/Base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ julia> fill!(A, 2.)
2×3 Array{Float64,2}:
2.0 2.0 2.0
2.0 2.0 2.0
julia> a = [1, 1, 1]; A = fill!(Vector{Vector{Int}}(3), a); a[1] = 2; A
3-element Array{Array{Int64,1},1}:
[2,1,1]
[2,1,1]
[2,1,1]
julia> x = 0; f() = (global x += 1; x); fill!(Vector{Int}(3), f())
1
1
1
```
"""
fill!
Expand Down

0 comments on commit fefbd3e

Please sign in to comment.