mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-24 11:11:31 +11:00
Update book/src/01-limitations/03-volatile_destination.md
Co-Authored-By: Lokathor <zefria@gmail.com>
This commit is contained in:
parent
10629c1c57
commit
dd98ac89d0
|
@ -196,7 +196,7 @@ impl<T> Iterator for VolatilePtrIter<T> {
|
||||||
|
|
||||||
Except we _can't_ write that code. What? The problem is that we used
|
Except we _can't_ write that code. What? The problem is that we used
|
||||||
`derive(Clone, Copy` on `VolatilePtr`. Because of a quirk in how `derive` works,
|
`derive(Clone, Copy` on `VolatilePtr`. Because of a quirk in how `derive` works,
|
||||||
this makes `VolatilePtr<T>` will only be `Copy` if the `T` is `Copy`, _even
|
this means `VolatilePtr<T>` will only be `Copy` if the `T` is `Copy`, _even
|
||||||
though the pointer itself is always `Copy` regardless of what it points to_.
|
though the pointer itself is always `Copy` regardless of what it points to_.
|
||||||
Ugh, terrible. We've got three basic ways to handle this:
|
Ugh, terrible. We've got three basic ways to handle this:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue