Remove Times trait
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
This commit is contained in:
parent
dfb61166f5
commit
729060dbb9
47 changed files with 151 additions and 200 deletions
|
@ -282,7 +282,7 @@ fn escape_str(s: &str) -> ~str {
|
|||
|
||||
fn spaces(n: uint) -> ~str {
|
||||
let mut ss = ~"";
|
||||
n.times(|| ss.push_str(" "));
|
||||
for _ in range(0, n) { ss.push_str(" "); }
|
||||
return ss;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue