Skip to content

Commit

Permalink
Enable doctests in devdocs/subarrays.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed May 17, 2017
1 parent e9da26a commit fbbb52d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/src/devdocs/subarrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ we can define dispatch directly on `SubArray{T,N,A,I,true}` without any intermed
Since this computation doesn't depend on runtime values, it can miss some cases in which the stride
happens to be uniform:

```julia-repl
```jldoctest
julia> A = reshape(1:4*2, 4, 2)
4×2 Base.ReshapedArray{Int64,2,UnitRange{Int64},Tuple{}}:
1 5
Expand All @@ -171,7 +171,7 @@ A view constructed as `view(A, 2:2:4, :)` happens to have uniform stride, and th
indexing indeed could be performed efficiently. However, success in this case depends on the
size of the array: if the first dimension instead were odd,

```julia-repl
```jldoctest
julia> A = reshape(1:5*2, 5, 2)
5×2 Base.ReshapedArray{Int64,2,UnitRange{Int64},Tuple{}}:
1 6
Expand Down

0 comments on commit fbbb52d

Please sign in to comment.