From 4599df4293af2f7843695f2cc23f290c13d714e7 Mon Sep 17 00:00:00 2001 From: togo Date: Fri, 24 Jun 2022 10:21:26 +0900 Subject: [PATCH 1/2] Fix typo --- docs/standardization/cppx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/standardization/cppx.md b/docs/standardization/cppx.md index c15eabb..1bfe929 100644 --- a/docs/standardization/cppx.md +++ b/docs/standardization/cppx.md @@ -199,7 +199,7 @@ inspect constexpr_opt (init-statement_opt condition) trailing-return-type_opt { i => { std::cout << "int: " << i << '\n'; } f => { std::cout << "float: " << f << '\n'; } - } + }; }; ``` @@ -257,7 +257,7 @@ inspect constexpr_opt (init-statement_opt condition) trailing-return-type_opt { [r] => std::numbers::pi * r * r; [w, h] => w * h; - } + }; }; ``` From 3e0c187ed1ea8f8b23bd40bfc5f2730aab52eefc Mon Sep 17 00:00:00 2001 From: raclamusi Date: Wed, 30 Aug 2023 17:56:14 +0900 Subject: [PATCH 2/2] Remove extra semicolons --- docs/standardization/cppx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/standardization/cppx.md b/docs/standardization/cppx.md index 1bfe929..1947af7 100644 --- a/docs/standardization/cppx.md +++ b/docs/standardization/cppx.md @@ -200,7 +200,7 @@ inspect constexpr_opt (init-statement_opt condition) trailing-return-type_opt i => { std::cout << "int: " << i << '\n'; } f => { std::cout << "float: " << f << '\n'; } }; - }; + } ``` ### Polymorphic Types のマッチング @@ -258,7 +258,7 @@ inspect constexpr_opt (init-statement_opt condition) trailing-return-type_opt [r] => std::numbers::pi * r * r; [w, h] => w * h; }; - }; + } ```