From 009f80b987214aaae42c94d2fc8a33aaf689ab69 Mon Sep 17 00:00:00 2001 From: wanghaha-dev Date: Mon, 7 Nov 2022 14:33:33 +0800 Subject: Modify comment syntax error --- library/alloc/src/collections/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/alloc/src') 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) -- cgit 1.4.1-3-g733a5