Skip to content

Commit d48cbed

Browse files
memoryleak47topecongiro
authored andcommitted
typo (#2598)
* typo * more typos
1 parent 2c7e737 commit d48cbed

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/cargo-fmt/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl Hash for Target {
211211
pub enum CargoFmtStrategy {
212212
/// Format every packages and dependencies.
213213
All,
214-
/// Format pacakges that are specified by the command line argument.
214+
/// Format packages that are specified by the command line argument.
215215
Some(Vec<String>),
216216
/// Format the root packages only.
217217
Root,

src/overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl<'a, T: 'a + Rewrite + ToExpr + Spanned> Context<'a, T> {
279279
if self.items.len() == 1 =>
280280
{
281281
// When we are rewriting a nested function call, we restrict the
282-
// bugdet for the inner function to avoid them being deeply nested.
282+
// budget for the inner function to avoid them being deeply nested.
283283
// However, when the inner function has a prefix or a suffix
284284
// (e.g. `foo() as u32`), this budget reduction may produce poorly
285285
// formatted code, where a prefix or a suffix being left on its own

src/reorder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//!
1313
//! `mod`, `extern crate` and `use` declarations are reorderd in alphabetical
1414
//! order. Trait items are reordered in pre-determined order (associated types
15-
//! and constatns comes before methods).
15+
//! and constants comes before methods).
1616
1717
// TODO(#2455): Reorder trait items.
1818

src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ fn rewrite_bare_fn(
732732
{
733733
result.push_str("for<");
734734
// 6 = "for<> ".len(), 4 = "for<".
735-
// This doesn't work out so nicely for mutliline situation with lots of
735+
// This doesn't work out so nicely for multiline situation with lots of
736736
// rightward drift. If that is a problem, we could use the list stuff.
737737
result.push_str(lifetime_str);
738738
result.push_str("> ");

0 commit comments

Comments
 (0)