about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-11-07 18:35:26 +0530
committerGitHub <noreply@github.com>2022-11-07 18:35:26 +0530
commit81b8db2675330c5d7c0af2db2b90311bd1aec976 (patch)
tree4ce8bf55322bb25a4e774b14b8a359c764891dd2 /library/alloc
parent498efa62736b7143a3c5e2104e23e317c75f54cf (diff)
parent009f80b987214aaae42c94d2fc8a33aaf689ab69 (diff)
downloadrust-81b8db2675330c5d7c0af2db2b90311bd1aec976.tar.gz
rust-81b8db2675330c5d7c0af2db2b90311bd1aec976.zip
Rollup merge of #104090 - wanghaha-dev:master, r=Dylan-DPC
Modify comment syntax error

Modify comment syntax error
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/collections/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/collections/mod.rs b/library/alloc/src/collections/mod.rs
index 161a375736c..3e0b0f73550 100644
--- a/library/alloc/src/collections/mod.rs
+++ b/library/alloc/src/collections/mod.rs
@@ -139,7 +139,7 @@ impl Display for TryReserveError {
                 " because the computed capacity exceeded the collection's maximum"
             }
             TryReserveErrorKind::AllocError { .. } => {
-                " because the memory allocator returned a error"
+                " because the memory allocator returned an error"
             }
         };
         fmt.write_str(reason)