From: Martin Olsson Date: Sun, 7 Sep 2014 19:47:55 +0000 (+0200) Subject: Fix two typos X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=7caf2ab802d7cf62662b6dd63ffe81672d45f1ad;p=rust.git Fix two typos --- diff --git a/src/doc/rust.md b/src/doc/rust.md index 0d1331e6077..345b7615168 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -3698,7 +3698,7 @@ There are two varieties of pointer in Rust: they exist to support interoperability with foreign code, and writing performance-critical or low-level functions. -The standard library contains addtional 'smart pointer' types beyond references +The standard library contains additional 'smart pointer' types beyond references and raw pointers. ### Function types diff --git a/src/librustc/middle/save/mod.rs b/src/librustc/middle/save/mod.rs index 04e04efd93c..6a77437d10e 100644 --- a/src/librustc/middle/save/mod.rs +++ b/src/librustc/middle/save/mod.rs @@ -1406,7 +1406,8 @@ fn visit_arm(&mut self, arm: &ast::Arm) { self.cur_scope), // FIXME(nrc) what is this doing here? def::DefStatic(_, _) => {} - _ => error!("unexpected defintion kind when processing collected paths: {:?}", *def) + _ => error!("unexpected definition kind when processing collected paths: {:?}", + *def) } } self.collected_paths.clear();