From d48cbedfe45e667d57573f147415d11c85fcb26a Mon Sep 17 00:00:00 2001 From: memoryleak47 Date: Thu, 5 Apr 2018 05:47:09 +0200 Subject: [PATCH] typo (#2598) * typo * more typos --- src/cargo-fmt/main.rs | 2 +- src/overflow.rs | 2 +- src/reorder.rs | 2 +- src/types.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo-fmt/main.rs b/src/cargo-fmt/main.rs index 990e2596660..c31caa1447d 100644 --- a/src/cargo-fmt/main.rs +++ b/src/cargo-fmt/main.rs @@ -211,7 +211,7 @@ impl Hash for Target { pub enum CargoFmtStrategy { /// Format every packages and dependencies. All, - /// Format pacakges that are specified by the command line argument. + /// Format packages that are specified by the command line argument. Some(Vec), /// Format the root packages only. Root, diff --git a/src/overflow.rs b/src/overflow.rs index 6383d032273..cc68f3e1ec2 100644 --- a/src/overflow.rs +++ b/src/overflow.rs @@ -279,7 +279,7 @@ impl<'a, T: 'a + Rewrite + ToExpr + Spanned> Context<'a, T> { if self.items.len() == 1 => { // When we are rewriting a nested function call, we restrict the - // bugdet for the inner function to avoid them being deeply nested. + // budget for the inner function to avoid them being deeply nested. // However, when the inner function has a prefix or a suffix // (e.g. `foo() as u32`), this budget reduction may produce poorly // formatted code, where a prefix or a suffix being left on its own diff --git a/src/reorder.rs b/src/reorder.rs index 38d2a09bd08..dbb2097535e 100644 --- a/src/reorder.rs +++ b/src/reorder.rs @@ -12,7 +12,7 @@ //! //! `mod`, `extern crate` and `use` declarations are reorderd in alphabetical //! order. Trait items are reordered in pre-determined order (associated types -//! and constatns comes before methods). +//! and constants comes before methods). // TODO(#2455): Reorder trait items. diff --git a/src/types.rs b/src/types.rs index 5be96348129..615dc53fc4e 100644 --- a/src/types.rs +++ b/src/types.rs @@ -732,7 +732,7 @@ fn rewrite_bare_fn( { result.push_str("for<"); // 6 = "for<> ".len(), 4 = "for<". - // This doesn't work out so nicely for mutliline situation with lots of + // This doesn't work out so nicely for multiline situation with lots of // rightward drift. If that is a problem, we could use the list stuff. result.push_str(lifetime_str); result.push_str("> ");