From 6b78cdf8d921ba37e810e29fb52db99e35be6302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nh=C3=A2n=28Kevin=29=20L=C3=BD?= <32099104+lynhan318@users.noreply.github.com> Date: Thu, 2 Jan 2025 22:24:32 +0700 Subject: [PATCH] docs: update modify a vector --- pages/Basic_Move_Programming/sui_move_data_types.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/Basic_Move_Programming/sui_move_data_types.mdx b/pages/Basic_Move_Programming/sui_move_data_types.mdx index 5a26440..d714c3f 100644 --- a/pages/Basic_Move_Programming/sui_move_data_types.mdx +++ b/pages/Basic_Move_Programming/sui_move_data_types.mdx @@ -436,11 +436,11 @@ Note: `` không bắc buộc phải có nếu như đã có các phần t ```rust -let v = vector::empty(); +let mut v = vector::empty(); -v::push_back(&mut v, 5); -v::push_back(&mut v, 6); -v::push_back(&mut v, 6); +vector::push_back(&mut v, 5); +vector::push_back(&mut v, 6); +vector::push_back(&mut v, 6); ``` ![](../assets/Basic_Move_Programming_image/AI_test_move.png) @@ -774,4 +774,4 @@ debug::print(&absent); ![](../assets/Basic_Move_Programming_image/option_example.png) - \ No newline at end of file +