Skip to content

Commit 4877ad3

Browse files
authored
Rollup merge of #89081 - ondra05:patch-1, r=dtolnay
Fix a typo Removed extra spaces in front of commas
2 parents 441046a + 3f75ab3 commit 4877ad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'a, E: Error + 'a> From<E> for Box<dyn Error + 'a> {
182182
///
183183
/// impl fmt::Display for AnError {
184184
/// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
185-
/// write!(f , "An error")
185+
/// write!(f, "An error")
186186
/// }
187187
/// }
188188
///
@@ -215,7 +215,7 @@ impl<'a, E: Error + Send + Sync + 'a> From<E> for Box<dyn Error + Send + Sync +
215215
///
216216
/// impl fmt::Display for AnError {
217217
/// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
218-
/// write!(f , "An error")
218+
/// write!(f, "An error")
219219
/// }
220220
/// }
221221
///

0 commit comments

Comments
 (0)