Explain raw identifer syntax
This commit is contained in:
parent
0c999ed132
commit
9c8802dc01
1 changed files with 2 additions and 0 deletions
|
|
@ -238,6 +238,8 @@ 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: `r#try`.
|
||||
///
|
||||
/// `try!` matches the given [`Result`]. In case of the `Ok` variant, the
|
||||
/// expression has the value of the wrapped value.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue