Skip to content

Commit

Permalink
fix code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrobu committed Dec 23, 2021
1 parent a68875c commit 04cf174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Like in NumPy, an array can be reshaped to any compatible shape without modifyin
are recomputed to re-interpret the data.

```swift
let a = ndarray<double>.range(to: 12)
let a = NdArray<Double>.range(to: 12)
print(a.reshaped([2, 6]))
// [[ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0],
// [ 6.0, 7.0, 8.0, 9.0, 10.0, 11.0]]
Expand Down

0 comments on commit 04cf174

Please sign in to comment.