Skip to content

Commit

Permalink
Shorten deprecation note
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Mar 31, 2018
1 parent 101e17d commit 44ad8fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<S
since,
MarkdownHtml(&deprecated_reason))
} else {
format!("This will be deprecated in {}{}",
format!("Deprecating in {}{}",
Escape(&stab.deprecated_since),
MarkdownHtml(&deprecated_reason))
};
Expand Down Expand Up @@ -2171,7 +2171,7 @@ fn short_stability(item: &clean::Item, cx: &Context, show_reason: bool) -> Vec<S
since,
MarkdownHtml(&note))
} else {
format!("This will be deprecated in {}{}",
format!("Deprecating in {}{}",
Escape(&depr.since),
MarkdownHtml(&note))
};
Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc/deprecated-future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#![feature(deprecated)]

// @has deprecated_future/struct.S.html '//*[@class="stab deprecated"]' \
// 'This will be deprecated in 99.99.99: effectively never'
// 'Deprecating in 99.99.99: effectively never'
#[deprecated(since = "99.99.99", note = "effectively never")]
pub struct S;

0 comments on commit 44ad8fd

Please sign in to comment.