Anonymous user
Menu: Difference between revisions
→{{header|Rust}}
m (moved REBOL to it's proper place alphabetically.) |
|||
Line 2,249:
}
print!("Pick a number from 1 to {}: ", items.len());
// Read the user input:
stdin.read_line(&mut buffer).unwrap();
println!();
// The buffer will contain the old input, so we need to clear it before we can▼
buffer.clear();▼
▲ },
}
}
}
|