From 9f13db2cb2edfd626006bd86e01351a8b1c23401 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 23 May 2014 19:42:26 -0700 Subject: [PATCH] rustdoc: Fix rendering of the 'static bound --- src/librustdoc/html/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/format.rs b/src/librustdoc/html/format.rs index d60fe3c03884..9043ffd10ba9 100644 --- a/src/librustdoc/html/format.rs +++ b/src/librustdoc/html/format.rs @@ -99,7 +99,7 @@ impl fmt::Show for clean::TyParamBound { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { clean::RegionBound => { - f.write("::".as_bytes()) + f.write("'static".as_bytes()) } clean::TraitBound(ref ty) => { write!(f, "{}", *ty)