diff --git a/talk/morelanguage/exceptions.tex b/talk/morelanguage/exceptions.tex index e425efd8..df88885f 100644 --- a/talk/morelanguage/exceptions.tex +++ b/talk/morelanguage/exceptions.tex @@ -376,7 +376,7 @@ \item An exception will leave the program in a defined state \begin{itemize} \item At least destructors must be able to run - \item This is similar to the moved from state + \item This is similar to the moved-from state \end{itemize} \item No resources are leaked \end{itemize} diff --git a/talk/morelanguage/templates.tex b/talk/morelanguage/templates.tex index a8eca9c0..de87399e 100644 --- a/talk/morelanguage/templates.tex +++ b/talk/morelanguage/templates.tex @@ -479,7 +479,7 @@ std::array a{1, 2, 3}; // std::array std::mutex m; - std::lock_guard l(m); // std::lock_guard + std::lock_guard l{m}; // std::lock_guard \end{cppcode*} \end{block} \end{frame}