File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ \subsection{Promise 2: No dangling pointers}
136
136
137
137
\begin {minted }{rust}
138
138
fn print_loud(text: String) { println!("{}!!!!!", text); }
139
- let s = "Hello, Mozillians " .to_string();
139
+ let s = "Hello, Hackers " .to_string();
140
140
print_loud(s);
141
141
println!("{}", s);
142
142
\end {minted }
@@ -164,7 +164,7 @@ \subsection{Promise 2: No dangling pointers}
164
164
165
165
\begin {minted }{rust}
166
166
fn print_loud(text: &String) { println!("{}!!!!!", text); }
167
- let s = "Hello, Mozillians " .to_string();
167
+ let s = "Hello, Hackers " .to_string();
168
168
print_loud(&s);
169
169
println!("Original value was {}", s);
170
170
\end {minted }
@@ -181,7 +181,7 @@ \subsection{Promise 2: No dangling pointers}
181
181
182
182
\begin {minted }{rust}
183
183
fn make_loud(text: &mut String) { text.push_str("!!!!!"); };
184
- let mut s = "Hello, Mozillians " .to_string();
184
+ let mut s = "Hello, Hackers " .to_string();
185
185
make_loud(&mut s);
186
186
println!("New value is {}", s);
187
187
\end {minted }
You can’t perform that action at this time.
0 commit comments