rustdoc: Fix rendering of the 'static bound

This commit is contained in:
Alex Crichton 2014-05-23 19:42:26 -07:00
parent 837d4d8f35
commit 9f13db2cb2

View File

@ -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)