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:
Simon Giesecke 2020-08-04 08:50:26 +00:00
Родитель ee62debaab
Коммит 18d9c43178
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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 { \