about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-27 21:36:42 +0000
committerbors <bors@rust-lang.org>2022-03-27 21:36:42 +0000
commit62523045ec681ee8c2ecb8d395fbcaccf336284b (patch)
tree70b78bc300ece7730925ac2914c0660d69395d38 /library/alloc/src
parentab0c2e18dceb7140626a158affb983ae81039bd0 (diff)
parenteca25311558ed55825189afb2af6a7ea47e3a564 (diff)
downloadrust-62523045ec681ee8c2ecb8d395fbcaccf336284b.tar.gz
rust-62523045ec681ee8c2ecb8d395fbcaccf336284b.zip
Auto merge of #95382 - Dylan-DPC:rollup-bebyfd1, r=Dylan-DPC
Rollup of 5 pull requests

Successful merges:

 - #94939 (diagnostics: suggest missing comma in bad FRU syntax)
 - #95120 (Implement `apply_switch_int_edge_effects` for backward analyses)
 - #95364 (Add long error explanation for E0667)
 - #95366 (Remove test files with duplicated checksums)
 - #95368 (Fix typo in `String::try_reserve_exact` docs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/string.rs2
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.
     ///