Skip to content

Commit bdba131

Browse files
committed
fixup! Type-assert the return type of collect(itr)
1 parent f04bf6f commit bdba131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ julia> [rand(Bool) ? 1 : missing for _ in [""]]
756756
1
757757
```
758758
"""
759-
collect(itr) = _collect(1:1 #= Array =#, itr, IteratorEltype(itr), IteratorSize(itr))::Vector
759+
collect(itr) = _collect(1:1 #= Array =#, itr, IteratorEltype(itr), IteratorSize(itr))::Array
760760

761761
collect(A::AbstractArray) = _collect_indices(axes(A), A)
762762

0 commit comments

Comments
 (0)