Skip to content

Commit

Permalink
Merge pull request #30616 from AzamatB/patch-1
Browse files Browse the repository at this point in the history
Update outdated syntax in offset-arrays.md
  • Loading branch information
timholy committed Jan 6, 2019
2 parents a25945a + d242c2d commit 6d2425b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/devdocs/offset-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ As an overview, the steps are:

* replace many uses of `size` with `axes`
* replace `1:length(A)` with `eachindex(A)`, or in some cases `LinearIndices(A)`
* replace explicit allocations like `Array{Int}(size(B))` with `similar(Array{Int}, axes(B))`
* replace explicit allocations like `Array{Int}(undef, size(B))` with `similar(Array{Int}, axes(B))`

These are described in more detail below.

Expand Down

0 comments on commit 6d2425b

Please sign in to comment.