From 18e2d7335072d6639c50fda93f244ebbd6bc80f6 Mon Sep 17 00:00:00 2001 From: wanghaha-dev Date: Mon, 7 Nov 2022 14:33:33 +0800 Subject: [PATCH] Modify comment syntax error --- alloc/src/collections/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alloc/src/collections/mod.rs b/alloc/src/collections/mod.rs index 161a37573..3e0b0f735 100644 --- a/alloc/src/collections/mod.rs +++ b/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)