fix definition

pull/10/head
Alexis Beingessner 9 years ago committed by Manish Goregaokar
parent ebee2651ec
commit 70ab1bf88a

@ -138,7 +138,7 @@ This has no semantic consequences, but is probably a more useful notion when
verifying the soundness of a construct.) verifying the soundness of a construct.)
That's it. Super simple right? Except for the fact that it took us two pages That's it. Super simple right? Except for the fact that it took us two pages
to define all of the terms in that defintion. You know: Super. Simple. to define all of the terms in that definition. You know: Super. Simple.
Actually it's a bit more complicated than that. In addition to references, Actually it's a bit more complicated than that. In addition to references,
Rust has *raw pointers*: `*const T` and `*mut T`. Raw pointers have no inherent Rust has *raw pointers*: `*const T` and `*mut T`. Raw pointers have no inherent

@ -44,7 +44,7 @@ Trickier than that is when we get into actual statefulness. Consider a simple
implementation of `Vec`: implementation of `Vec`:
```rust ```rust
// Note this defintion is insufficient. See the section on lifetimes. // Note this definition is insufficient. See the section on lifetimes.
pub struct Vec<T> { pub struct Vec<T> {
ptr: *mut T, ptr: *mut T,
len: usize, len: usize,

Loading…
Cancel
Save