diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-27 22:51:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-27 22:51:42 +0200 |
| commit | eca25311558ed55825189afb2af6a7ea47e3a564 (patch) | |
| tree | a70b2214fe92b34050f2a3b28bbf72438c64bc94 /library/alloc/src | |
| parent | 1367ede62509177b26600027c3ca66900d6c4a66 (diff) | |
| parent | 1ba885113af527a3034c8414c288da845ac5c84d (diff) | |
| download | rust-eca25311558ed55825189afb2af6a7ea47e3a564.tar.gz rust-eca25311558ed55825189afb2af6a7ea47e3a564.zip | |
Rollup merge of #95368 - lopopolo:lopopolo/string-try-reserve-exact-doc-typo, r=Dylan-DPC
Fix typo in `String::try_reserve_exact` docs Copying the pattern from `Vec::try_reserve_exact` and `String::try_reserve`, it looks like this doc comment is intending to refer to the currently-being-documented function.
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 71419c15196..71b6b9b41f5 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1038,7 +1038,7 @@ impl String { } /// Tries to reserve the minimum capacity for exactly `additional` more elements to - /// be inserted in the given `String`. After calling `reserve_exact`, + /// be inserted in the given `String`. After calling `try_reserve_exact`, /// capacity will be greater than or equal to `self.len() + additional`. /// Does nothing if the capacity is already sufficient. /// |
