diff options
| author | Carol (Nichols || Goulding) <carol.nichols@gmail.com> | 2020-11-21 14:43:34 -0500 |
|---|---|---|
| committer | Carol (Nichols || Goulding) <carol.nichols@gmail.com> | 2020-11-21 14:43:34 -0500 |
| commit | ae17d7d455842576f4a4bdb6759be9df9a859635 (patch) | |
| tree | 0dbf4ecf0df0f2ea61a18042e261bd0d83cd8068 /compiler | |
| parent | d806d656578c2d6b34cf96809862e8cffb293a68 (diff) | |
| download | rust-ae17d7d455842576f4a4bdb6759be9df9a859635.tar.gz rust-ae17d7d455842576f4a4bdb6759be9df9a859635.zip | |
More consistently use spaces after commas in lists in docs
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_lint/src/unused.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_lint_defs/src/builtin.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/unused.rs b/compiler/rustc_lint/src/unused.rs index 4bbc180b226..2a5ad5e6c98 100644 --- a/compiler/rustc_lint/src/unused.rs +++ b/compiler/rustc_lint/src/unused.rs @@ -1152,7 +1152,7 @@ declare_lint! { /// ```rust /// #![feature(box_syntax)] /// fn main() { - /// let a = (box [1,2,3]).len(); + /// let a = (box [1, 2, 3]).len(); /// } /// ``` /// diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 1d0d6980b7a..fa82dce0ae2 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -1719,7 +1719,7 @@ declare_lint! { /// /// impl<T: ?Sized> MyIterator for T where T: Iterator { } /// - /// let x = vec![1,2,3]; + /// let x = vec![1, 2, 3]; /// let _ = x.iter().is_sorted(); /// ``` /// |
