]> git.lizzy.rs Git - rust.git/commitdiff
Fix two typos
authorMartin Olsson <martin@minimum.se>
Sun, 7 Sep 2014 19:47:55 +0000 (21:47 +0200)
committerMartin Olsson <martin@minimum.se>
Mon, 15 Sep 2014 21:04:08 +0000 (23:04 +0200)
src/doc/rust.md
src/librustc/middle/save/mod.rs

index 0d1331e6077cd9d2270c0872f14658f700a6bff0..345b7615168f0e98d3d9696bd346694e43ebdeb6 100644 (file)
@@ -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
index 04e04efd93c261fe19ca612f0ccbd59a670fc77e..6a77437d10e09116277d506e3df04dabbb49e6db 100644 (file)
@@ -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();