This commit is contained in:
Thomas Forgione 2019-09-25 18:24:32 +02:00
rodzic 77e737dfa2
commit a500d1e3cc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 203DAEA747F48F41
3 zmienionych plików z 10 dodań i 14 usunięć

Wyświetl plik

@ -1,10 +1,8 @@
fn func() {
let mut vec = vec![1, 2, 3];
let iter = vec.iter();
loop {
match iter.next() {
Some(x) => vec.push(x),
None => break,
}
let mut vec = vec![1, 2, 3];
let iter = vec.iter();
loop {
match iter.next() {
Some(x) => vec.push(x),
None => break,
}
}

Wyświetl plik

@ -1,6 +1,4 @@
fn func() {
let mut vec = vec![1, 2, 3];
for value in &vec {
vec.push(value);
}
let mut vec = vec![1, 2, 3];
for value in &vec {
vec.push(value);
}

Wyświetl plik

@ -33,7 +33,7 @@ Consider the piece of C++ code in Listings~\ref{d3i:undefined-behaviour-cpp} and
\begin{figure}[ht]
\centering
\begin{minipage}[c]{0.75\textwidth}
\begin{minipage}[c]{0.85\textwidth}
\lstinputlisting[
language=c++,
label={d3i:undefined-behaviour-cpp},