Use toggled class shorthand in benchmark
This commit is contained in:
parent
fb935c2e13
commit
8d0e412336
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ fn render_template(b: &mut test::Bencher) {
|
||||||
h1 { "CSL " (year) }
|
h1 { "CSL " (year) }
|
||||||
ul {
|
ul {
|
||||||
@for (i, team) in teams.iter().enumerate() {
|
@for (i, team) in teams.iter().enumerate() {
|
||||||
li class=@if i == 0 { "champion" } {
|
li.champion[i == 0] {
|
||||||
b (team.name) ": " (team.score)
|
b (team.name) ": " (team.score)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue