# Mistake in the \`SubArray\` doc?

**URL:** <https://discourse.julialang.org/t/mistake-in-the-subarray-doc/7732>\
**Category:** General Usage\
**Created:** [December 13, 2017, 7:27am UTC](https://discourse.julialang.org/t/mistake-in-the-subarray-doc/7732 "2017-12-13T07:27:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [December 13, 2017, 7:27am UTC](https://discourse.julialang.org/t/mistake-in-the-subarray-doc/7732/1 "2017-12-13T07:27:50Z")

</div>

I’m looking at this [section](https://docs.julialang.org/en/stable/devdocs/subarrays/#Type-parameters-and-fields-1) where A is a `Array{Float64, 3}` and `S1 = view(A, :, 5, 2:6)`. I’m then confused by the explanation follows:

> If in our example above A is a Array{Float64, 3}, our S1 case above would be a SubArray{Int64,2,Array{Int64,3},Tuple{Colon,Int64,UnitRange{Int64}},false}.

Why isn’t it SubArray{ **Float64** ,2,Array{ **Float64** ,3},Tuple{Colon,Int64,UnitRange{Int64}},false}?

Thanks!

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [December 13, 2017, 7:40am UTC](https://discourse.julialang.org/t/mistake-in-the-subarray-doc/7732/2 "2017-12-13T07:40:28Z")

</div>

Fixed here: [https://github.com/JuliaLang/julia/pull/23298](https://github.com/JuliaLang/julia/pull/23298)

---

<div class="post-metadata">

**Author:** ![chobbes](https://avatars.discourse-cdn.com/v4/letter/c/848f3c/32.png) [@chobbes](https://discourse.julialang.org/u/chobbes)\
**Post date:** [December 13, 2017, 7:46am UTC](https://discourse.julialang.org/t/mistake-in-the-subarray-doc/7732/3 "2017-12-13T07:46:46Z")

</div>

Fair enough. Thanks. One more question - Why `Colon` is changed to `Base.OneTo{Int64}`?
