about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTom Jakubowski <tom@crystae.net>2014-12-16 06:32:52 -0800
committerTom Jakubowski <tom@crystae.net>2014-12-24 10:32:49 -0600
commitb39e99cfc72a21ae6e697e9db2cef252dfb1aecb (patch)
tree47c773102ed78b26429e92380ff4ce23d65474bf /src
parente64a8193b02ce72ef183274994a25eae281cb89c (diff)
downloadrust-b39e99cfc72a21ae6e697e9db2cef252dfb1aecb.tar.gz
rust-b39e99cfc72a21ae6e697e9db2cef252dfb1aecb.zip
rustdoc: render `for<>` on old closure lifetimes
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/format.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs
index a2d5530692c..4ec974b0cf7 100644
--- a/src/librustdoc/html/format.rs
+++ b/src/librustdoc/html/format.rs
@@ -407,7 +407,7 @@ impl fmt::Show for clean::Type {
                        lifetimes = if decl.lifetimes.len() == 0 {
                            "".to_string()
                        } else {
-                           format!("&lt;{:#}&gt;", decl.lifetimes)
+                           format!("for &lt;{:#}&gt;", decl.lifetimes)
                        },
                        args = decl.decl.inputs,
                        arrow = decl.decl.output,
@@ -436,7 +436,7 @@ impl fmt::Show for clean::Type {
                        lifetimes = if decl.lifetimes.len() == 0 {
                            "".to_string()
                        } else {
-                           format!("&lt;{:#}&gt;", decl.lifetimes)
+                           format!("for &lt;{:#}&gt;", decl.lifetimes)
                        },
                        args = decl.decl.inputs,
                        bounds = if decl.bounds.len() == 0 {