Skip to content

Commit 42a18d0

Browse files
committed
Two micro-changes for the advanced part of core-modern.
1 parent 8e770dd commit 42a18d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: talk/morelanguage/exceptions.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
\item An exception will leave the program in a defined state
377377
\begin{itemize}
378378
\item At least destructors must be able to run
379-
\item This is similar to the moved from state
379+
\item This is similar to the moved-from state
380380
\end{itemize}
381381
\item No resources are leaked
382382
\end{itemize}

Diff for: talk/morelanguage/templates.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479
std::array a{1, 2, 3}; // std::array<int, 3>
480480

481481
std::mutex m;
482-
std::lock_guard l(m); // std::lock_guard<std::mutex>
482+
std::lock_guard l{m}; // std::lock_guard<std::mutex>
483483
\end{cppcode*}
484484
\end{block}
485485
\end{frame}

0 commit comments

Comments
 (0)