Skip to content

Commit

Permalink
Rollup merge of #71225 - leocassarani:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Fix typo in Default trait docs: Provides -> Provide

An earlier commit (99ed06e) accidentally changed this paragraph from the original, imperative `Provide` to the present tense `Provides`. The latter is indeed the standard for Rustdoc comments relating to a function or method, but this snippet is introducing the `Default` trait in general terms and not talking about any particular function. I believe this change was likely made in error and should be reverted.
  • Loading branch information
Dylan-DPC authored Apr 17, 2020
2 parents 28964b4 + da48550 commit 65243a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
///
/// ## How can I implement `Default`?
///
/// Provides an implementation for the `default()` method that returns the value of
/// Provide an implementation for the `default()` method that returns the value of
/// your type that should be the default:
///
/// ```
Expand Down

0 comments on commit 65243a8

Please sign in to comment.