diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 0a09b42..114c3d2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -3613,8 +3613,8 @@ Using `std::shared_ptr` is the standard way to represent shared ownership. That std::thread t2 {shade, args2, bottom_left, im}; std::thread t3 {shade, args3, bottom_right, im}; - // detaching threads requires extra care (e.g., to join - // before main ends), but even if we do detach t0..3 here ... + // detaching threads requires extra care (e.g., to join before + // main ends), but even if we do detach the four threads here ... } // ... shared_ptr ensures that eventually the last thread to // finish safely deletes the image