From d6fd5c69012d8817223603acc26bee9db952af74 Mon Sep 17 00:00:00 2001 From: Georges-Charles Brain Date: Sun, 15 Oct 2023 12:22:04 +0300 Subject: [PATCH] Update 3_parameter_passing_and_object_deletion.md typos --- unit-two/lessons/3_parameter_passing_and_object_deletion.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit-two/lessons/3_parameter_passing_and_object_deletion.md b/unit-two/lessons/3_parameter_passing_and_object_deletion.md index f8dc8dc..efe08bf 100644 --- a/unit-two/lessons/3_parameter_passing_and_object_deletion.md +++ b/unit-two/lessons/3_parameter_passing_and_object_deletion.md @@ -2,7 +2,7 @@ ## Parameter Passing (by `value`, `ref` and `mut ref`) -If you are familiar with rustlang, then you are probably familiar the Rust ownership system. One advantage of movelang compare to Solidity is that, you can get a sense of what a function call might do to your asset that you used for the function interaction. Here are some examples: +If you are familiar with rustlang, then you are probably familiar with the Rust ownership system. One advantage of movelang compared to Solidity is that you can get a sense of what a function call might do to the asset that you used for the function interaction. Here are some examples: ```rust use sui::object::{Self}; @@ -17,7 +17,7 @@ public entry fun update_score(transcriptObject: &mut TranscriptObject, score: u8 transcriptObject.literature = score } -// You are allowed to do anything with the score, including view, edit, delete the entire transcript itself. +// You are allowed to do anything with the score, including view, edit, or delete the entire transcript itself. public entry fun delete_transcript(transcriptObject: TranscriptObject){ let TranscriptObject {id, history: _, math: _, literature: _ } = transcriptObject; object::delete(id);