Skip to content

Commit 5abf794

Browse files
committed
auto merge of #14906 : P1start/rust/rustdoc-lifetimes, r=huonw
rustdoc was previously formatting lifetimes with two apostrophes, presumably as a result of #14797.
2 parents 7ec7805 + 0204ca1 commit 5abf794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ impl Clean<Lifetime> for ty::RegionParameterDef {
617617
impl Clean<Option<Lifetime>> for ty::Region {
618618
fn clean(&self) -> Option<Lifetime> {
619619
match *self {
620-
ty::ReStatic => Some(Lifetime("static".to_string())),
620+
ty::ReStatic => Some(Lifetime("'static".to_string())),
621621
ty::ReLateBound(_, ty::BrNamed(_, name)) =>
622622
Some(Lifetime(token::get_name(name).get().to_string())),
623623
ty::ReEarlyBound(_, _, _, name) => Some(Lifetime(name.clean())),

0 commit comments

Comments
 (0)