You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rust.tex
+46-1Lines changed: 46 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1958,7 +1958,52 @@ \section{An I/O Project: Building a Command Line Program}
1958
1958
1959
1959
\begin{frame}[fragile]
1960
1960
\frametitle{minigrep - Reading a File}
1961
-
\inputminted{rust}{./code/grep2.rs}
1961
+
\inputminted{rust}{./code/grep3.rs}
1962
+
\end{frame}
1963
+
1964
+
\begin{frame}[fragile]
1965
+
\frametitle{minigrep - Refactoring to Improve Modularity and Error Handling}
1966
+
\begin{itemize}
1967
+
\item Split your program into a \mintinline{shell}|main.rs| and a \mintinline{shell}|lib.rs| and move your \textbf{program’s logic to} \mintinline{shell}|lib.rs|.
1968
+
\end{itemize}
1969
+
\end{frame}
1970
+
1971
+
\begin{frame}[fragile]
1972
+
\frametitle{minigrep - Refactoring (Extracting the Argument Parser)}
0 commit comments