Convert old-style for loops to new-style
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
This commit is contained in:
@@ -94,7 +94,7 @@ fn sectionalize(desc: option<str>) -> (option<str>, [doc::section]) {
|
||||
let mut current_section = none;
|
||||
let mut sections = [];
|
||||
|
||||
for line in lines {
|
||||
for lines.each {|line|
|
||||
alt parse_header(line) {
|
||||
some(header) {
|
||||
if option::is_some(current_section) {
|
||||
|
||||
Reference in New Issue
Block a user