diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-17 03:05:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-17 03:05:21 +0200 |
| commit | 65243a8f7c03425c399d990d0802e4506bbcd754 (patch) | |
| tree | 0a17b889fb34165bae9f5acf4b4bd1fa14702240 | |
| parent | 28964b4ef2f165fdc667367bd9ba6b8d4cf81d34 (diff) | |
| parent | da48550b330d95ac92ae6a65901b10ba3ccc130c (diff) | |
| download | rust-65243a8f7c03425c399d990d0802e4506bbcd754.tar.gz rust-65243a8f7c03425c399d990d0802e4506bbcd754.zip | |
Rollup merge of #71225 - leocassarani:patch-1, r=jonas-schievink
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.
| -rw-r--r-- | src/libcore/default.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/default.rs b/src/libcore/default.rs index 15ac3aea8b7..06402a05d26 100644 --- a/src/libcore/default.rs +++ b/src/libcore/default.rs @@ -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: /// /// ``` |
