Skip to content

Commit

Permalink
Rollup merge of rust-lang#56424 - mark-i-m:explain-raw, r=Centril
Browse files Browse the repository at this point in the history
Mention raw-ident syntax

According to rust-lang#56419 (review)

Blocked on rust-lang#56419

r? @Centril
  • Loading branch information
Centril committed Dec 2, 2018
2 parents 705da41 + 1fca907 commit e292b3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,10 @@ macro_rules! debug_assert_ne {
/// with converting downstream errors.
///
/// The `?` operator was added to replace `try!` and should be used instead.
/// Furthermore, `try` is a reserved word in Rust 2018, so if you must use
/// it, you will need to use the [raw-identifier syntax][ris]: `r#try`.
///
/// [ris]: https://doc.rust-lang.org/nightly/rust-by-example/compatibility/raw_identifiers.html
///
/// `try!` matches the given [`Result`]. In case of the `Ok` variant, the
/// expression has the value of the wrapped value.
Expand Down

0 comments on commit e292b3c

Please sign in to comment.