Skip to content

Commit

Permalink
Merge pull request #31 from JuliaLang/mbauman-patch-1
Browse files Browse the repository at this point in the history
`size` must return a tuple
  • Loading branch information
shashi authored Jan 30, 2017
2 parents 6a6b6cd + 1445d36 commit ecf63dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PersistentVector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function boundscheck!(v::PersistentVector, i::Int)
0 < i <= v.length || error(BoundsError(), " :: Index $i out of bounds ($(v.length))")
end

Base.size( v::PersistentVector) = v.length
Base.size( v::PersistentVector) = (v.length,)
Base.length( v::PersistentVector) = v.length
Base.isempty(v::PersistentVector) = length(v) == 0
Base.endof( v::PersistentVector) = length(v)
Expand Down

0 comments on commit ecf63dc

Please sign in to comment.