Update book/src/01-limitations/03-volatile_destination.md

Co-Authored-By: Lokathor <zefria@gmail.com>
This commit is contained in:
Jay Oster 2018-12-15 10:23:36 -07:00 committed by GitHub
parent 10629c1c57
commit dd98ac89d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,7 +196,7 @@ impl<T> Iterator for VolatilePtrIter<T> {
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,
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_.
Ugh, terrible. We've got three basic ways to handle this: