From db6bd419e5e85cbc145666f0441859a99e8acaf7 Mon Sep 17 00:00:00 2001 From: stalewhale <112107126+stalewhale@users.noreply.github.com> Date: Wed, 14 Sep 2022 16:15:02 -0700 Subject: [PATCH] code snippet typos --- .../build/programming-with-objects/ch4-object-wrapping.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/build/programming-with-objects/ch4-object-wrapping.md b/doc/src/build/programming-with-objects/ch4-object-wrapping.md index 0ed1342571165..60a955c3a92cf 100644 --- a/doc/src/build/programming-with-objects/ch4-object-wrapping.md +++ b/doc/src/build/programming-with-objects/ch4-object-wrapping.md @@ -156,15 +156,15 @@ The above code does the swap: it sends `object1` to the original owner of `objec ```rust let service_address = tx_context::sender(ctx); -Balance::join(&mut fee1, fee2); +balance::join(&mut fee1, fee2); transfer::transfer(coin::from_balance(fee1, ctx), service_address); ``` `fee2` is merged into `fee1`, turned into a `Coin` and sent to the `service_address`. Finally, we signal Sui that we have deleted both wrapper objects: ```rust -id::delete(id1); -id::delete(id2); +object::delete(id1); +object::delete(id2); ``` At the end of this call, the two objects have been swapped (sent to the opposite owner) and the service provider takes the service fee.