зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1654564
- Fix documentation of requirements on target in MOZ_TRY_VAR. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D84531
This commit is contained in:
Родитель
ee62debaab
Коммит
18d9c43178
|
@ -561,8 +561,7 @@ inline GenericErrorResult<E> Err(E&& aErrorValue) {
|
|||
* MOZ_TRY_VAR(target, expr) is the C++ equivalent of Rust's `target =
|
||||
* try!(expr);`. First, it evaluates expr, which must produce a Result value. On
|
||||
* success, the result's success value is assigned to target. On error,
|
||||
* immediately returns the error result. |target| must evaluate to a reference
|
||||
* without any side effects.
|
||||
* immediately returns the error result. |target| must be an lvalue.
|
||||
*/
|
||||
#define MOZ_TRY_VAR(target, expr) \
|
||||
do { \
|
||||
|
|
Загрузка…
Ссылка в новой задаче