Skip to content

Commit b39e99c

Browse files
committed
rustdoc: render for<> on old closure lifetimes
1 parent e64a819 commit b39e99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ impl fmt::Show for clean::Type {
407407
lifetimes = if decl.lifetimes.len() == 0 {
408408
"".to_string()
409409
} else {
410-
format!("&lt;{:#}&gt;", decl.lifetimes)
410+
format!("for &lt;{:#}&gt;", decl.lifetimes)
411411
},
412412
args = decl.decl.inputs,
413413
arrow = decl.decl.output,
@@ -436,7 +436,7 @@ impl fmt::Show for clean::Type {
436436
lifetimes = if decl.lifetimes.len() == 0 {
437437
"".to_string()
438438
} else {
439-
format!("&lt;{:#}&gt;", decl.lifetimes)
439+
format!("for &lt;{:#}&gt;", decl.lifetimes)
440440
},
441441
args = decl.decl.inputs,
442442
bounds = if decl.bounds.len() == 0 {

0 commit comments

Comments
 (0)