pull/10/head
Alexis Beingessner 9 years ago committed by Manish Goregaokar
parent fe26a882c7
commit dae4f5665c

@ -63,7 +63,7 @@ context.
Rust largely understands that any operation that produces or stores a ZST can be
reduced to a no-op. For instance, a `HashSet<T>` can be effeciently implemented
as a thin wrapper around `HashMap<T, ()>` because all the operations `HashMap`
normally does to store and retrieve keys will be completely stripped in
normally does to store and retrieve values will be completely stripped in
monomorphization.
Similarly `Result<(), ()>` and `Option<()>` are effectively just fancy `bool`s.

Loading…
Cancel
Save