diff --git a/language/documentation/book/src/abilities.md b/language/documentation/book/src/abilities.md index 2abe21b8e2..133bb58d29 100644 --- a/language/documentation/book/src/abilities.md +++ b/language/documentation/book/src/abilities.md @@ -227,8 +227,8 @@ fun valid(account: &signer) acquires MyResource { move_to(account, MyResource { f: 0 }) }; // Valid, 'MyResource' has 'key' - let r = borrow_global_mut>(addr) - r.f = r.f + 1; + let r = borrow_global_mut>(addr); + r.f = r.f + 1 } fun invalid(account: &signer) {