From 299c8270e83539ff197c0145c5e5bcad83fc6784 Mon Sep 17 00:00:00 2001 From: googhee <130664258+googhee@users.noreply.github.com> Date: Sat, 22 Jun 2024 22:18:23 +0800 Subject: [PATCH 1/3] =?UTF-8?q?Update=2003=E5=85=B1=E4=BA=AB=E6=95=B0?= =?UTF-8?q?=E6=8D=AE.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删了个分号; --- "md/03\345\205\261\344\272\253\346\225\260\346\215\256.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/md/03\345\205\261\344\272\253\346\225\260\346\215\256.md" "b/md/03\345\205\261\344\272\253\346\225\260\346\215\256.md" index a2b6cc60..f1633a48 100644 --- "a/md/03\345\205\261\344\272\253\346\225\260\346\215\256.md" +++ "b/md/03\345\205\261\344\272\253\346\225\260\346\215\256.md" @@ -371,7 +371,7 @@ std::size_t n{}; void f(){ std::lock_guard lc1{ m1 }; - std::lock_guard lc2{ m2 };; + std::lock_guard lc2{ m2 }; ++n; } void f2() { From ffdad7571267debb7fd7adf6266ba360dda148f6 Mon Sep 17 00:00:00 2001 From: googhee <130664258+googhee@users.noreply.github.com> Date: Sat, 22 Jun 2024 22:35:31 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Update=2002=E4=BD=BF=E7=94=A8=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 加了个空格 It is the most unvaluable PR. --- "md/02\344\275\277\347\224\250\347\272\277\347\250\213.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/md/02\344\275\277\347\224\250\347\272\277\347\250\213.md" "b/md/02\344\275\277\347\224\250\347\272\277\347\250\213.md" index abcae16f..18dbe517 100644 --- "a/md/02\344\275\277\347\224\250\347\272\277\347\250\213.md" +++ "b/md/02\344\275\277\347\224\250\347\272\277\347\250\213.md" @@ -91,7 +91,7 @@ auto sum(ForwardIt first, ForwardIt last){ std::size_t remainder = distance % num_threads; // 存储每个线程的结果 - std::vectorresults(num_threads); + std::vector results(num_threads); // 存储关联线程的线程对象 std::vector threads; From f1ca7fa6c02e1795f396c63e8f91b871ba4a5935 Mon Sep 17 00:00:00 2001 From: googhee <130664258+googhee@users.noreply.github.com> Date: Sat, 22 Jun 2024 22:49:52 +0800 Subject: [PATCH 3/3] =?UTF-8?q?Update=2002=E4=BD=BF=E7=94=A8=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 加了个空格