Skip to content

Commit

Permalink
Fix typo in Default trait docs: Provides -> Provide
Browse files Browse the repository at this point in the history
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
leocassarani committed Apr 16, 2020
1 parent 7f3df57 commit da48550
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 da48550

Please sign in to comment.