rebuild pages at 85fd039

This commit is contained in:
Steve Klabnik
2016-08-10 23:52:17 +00:00
parent 32cf370e3c
commit 5a5e98272b
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -86,7 +86,7 @@ the word, though. Let’s try that:</p>
let bytes = s.as_bytes();
for (i, &amp;item) in bytes.iter().enumerate() {
if byte == b' ' {
if item == b' ' {
return i;
}
}
@@ -128,7 +128,7 @@ that it will still be valid in the future. Consider this:</p>
# let bytes = s.as_bytes();
#
# for (i, &amp;item) in bytes.iter().enumerate() {
# if byte == b' ' {
# if item == b' ' {
# return i;
# }
# }
@@ -203,7 +203,7 @@ let slice = &amp;s[..];
let bytes = s.as_bytes();
for (i, &amp;item) in bytes.iter().enumerate() {
if byte == b' ' {
if item == b' ' {
return &amp;s[0..i];
}
}
@@ -274,7 +274,7 @@ with no loss of functionality:</p>
# let bytes = s.as_bytes();
#
# for (i, &amp;item) in bytes.iter().enumerate() {
# if byte == b' ' {
# if item == b' ' {
# return &amp;s[0..i];
# }
# }
+4 -4
View File
@@ -2796,7 +2796,7 @@ the word, though. Let’s try that:</p>
let bytes = s.as_bytes();
for (i, &amp;item) in bytes.iter().enumerate() {
if byte == b' ' {
if item == b' ' {
return i;
}
}
@@ -2838,7 +2838,7 @@ that it will still be valid in the future. Consider this:</p>
# let bytes = s.as_bytes();
#
# for (i, &amp;item) in bytes.iter().enumerate() {
# if byte == b' ' {
# if item == b' ' {
# return i;
# }
# }
@@ -2913,7 +2913,7 @@ let slice = &amp;s[..];
let bytes = s.as_bytes();
for (i, &amp;item) in bytes.iter().enumerate() {
if byte == b' ' {
if item == b' ' {
return &amp;s[0..i];
}
}
@@ -2984,7 +2984,7 @@ with no loss of functionality:</p>
# let bytes = s.as_bytes();
#
# for (i, &amp;item) in bytes.iter().enumerate() {
# if byte == b' ' {
# if item == b' ' {
# return &amp;s[0..i];
# }
# }