Fix the merge I messed up

This commit is contained in:
Carol (Nichols || Goulding)
2016-08-10 19:46:32 -04:00
parent 37575e7b21
commit 85fd039271
+4 -4
View File
@@ -25,7 +25,7 @@ fn first_word(s: &String) -> usize {
let bytes = s.as_bytes();
for (i, &item) in bytes.iter().enumerate() {
if byte == b' ' {
if item == b' ' {
return i;
}
}
@@ -81,7 +81,7 @@ that it will still be valid in the future. Consider this:
# let bytes = s.as_bytes();
#
# for (i, &item) in bytes.iter().enumerate() {
# if byte == b' ' {
# if item == b' ' {
# return i;
# }
# }
@@ -181,7 +181,7 @@ fn first_word(s: &String) -> &str {
let bytes = s.as_bytes();
for (i, &item) in bytes.iter().enumerate() {
if byte == b' ' {
if item == b' ' {
return &s[0..i];
}
}
@@ -279,7 +279,7 @@ with no loss of functionality:
# let bytes = s.as_bytes();
#
# for (i, &item) in bytes.iter().enumerate() {
# if byte == b' ' {
# if item == b' ' {
# return &s[0..i];
# }
# }