File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ copyto!(mem2, mem1)
3434
3535# Use the memory views as ordinary vectors
3636fst = mem1[1 ]
37- reverse! (mem1 ) # ... etc
37+ reverse! (mem2 ) # ... etc
3838```
3939
4040### Dispatching to MemoryView
@@ -56,9 +56,7 @@ foo(x::AbstractString) = foo(codeunits(x))
5656```
5757
5858## API differences from ` Memory `
59- Given a ` MemoryView ` ` v ` and a ` Memory ` ` mem ` :
60-
61- * ` v[1:3] ` creates a view into the same memory, instead of allocating new backing memory.
59+ * For ` v::MemoryView ` , ` v[1:3] ` creates a view into the same memory, instead of allocating new backing memory.
6260* ` copyto! ` and ` unsafe_copyto! ` do not take starting indices. Instead, simply create new views starting at the desired indices.
6361
6462## Limitations
You can’t perform that action at this time.
0 commit comments