Skip to content

Commit d3534b8

Browse files
committed
txs auto checkin
1 parent 3c5cd01 commit d3534b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,8 +1821,9 @@ \section{Writing Automated Tests}
18211821

18221822
\begin{frame}[fragile]
18231823
\frametitle{Adding Custom Failure Messages}
1824+
You can also add a custom message to be printed with the failure message as optional arguments to the \mintinline{rust}|assert!|, \mintinline{rust}|assert_eq!|, and \mintinline{rust}|assert_ne!| macros. Any arguments specified after the required arguments are passed along to the \mintinline{rust}|format!| macro
18241825

1825-
\inputminted{rust}{./code/test4.rs}
1826+
\inputminted{rust}{./code/test5.rs}
18261827
\end{frame}
18271828

18281829

0 commit comments

Comments
 (0)