From 70ab1bf88a99aa0a2b942fbd0cf09bfa5ad35043 Mon Sep 17 00:00:00 2001 From: Alexis Beingessner Date: Mon, 13 Jul 2015 21:37:19 -0700 Subject: [PATCH] fix definition --- references.md | 2 +- working-with-unsafe.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/references.md b/references.md index 1039cb1..24c6b60 100644 --- a/references.md +++ b/references.md @@ -138,7 +138,7 @@ This has no semantic consequences, but is probably a more useful notion when verifying the soundness of a construct.) 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, Rust has *raw pointers*: `*const T` and `*mut T`. Raw pointers have no inherent diff --git a/working-with-unsafe.md b/working-with-unsafe.md index b1174a7..69d0b31 100644 --- a/working-with-unsafe.md +++ b/working-with-unsafe.md @@ -44,7 +44,7 @@ Trickier than that is when we get into actual statefulness. Consider a simple implementation of `Vec`: ```rust -// Note this defintion is insufficient. See the section on lifetimes. +// Note this definition is insufficient. See the section on lifetimes. pub struct Vec { ptr: *mut T, len: usize,