From 2ee3fff631e5876c7b1f17409533d4ae821ddb68 Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Wed, 25 Apr 2018 18:10:59 +0200 Subject: [PATCH] Fix typo in C.44 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c00bb8e..63b12ac 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5292,7 +5292,7 @@ Being able to set a value to "the default" without operations that might fail si This is nice and general, but setting a `Vector0` to empty after an error involves an allocation, which may fail. Also, having a default `Vector` represented as `{new T[0], 0, 0}` seems wasteful. -For example, `Vector0 v(100)` costs 100 allocations. +For example, `Vector0 v[100]` costs 100 allocations. ##### Example