From cae51479570060fe9e78816714f738cd6dff22d0 Mon Sep 17 00:00:00 2001 From: RakeshXBT <85406290+Rakesh-lab-stack@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:06:27 +0530 Subject: [PATCH] chore: fix minor typo in rust code in docs (#566) Co-authored-by: Igor Aleksanov --- docs/advanced/gas_and_fees.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/gas_and_fees.md b/docs/advanced/gas_and_fees.md index 800d27299c2a..b8f0e531e98f 100644 --- a/docs/advanced/gas_and_fees.md +++ b/docs/advanced/gas_and_fees.md @@ -86,7 +86,7 @@ transaction. ```rust let gas_remaining_before = vm.gas_remaining(); execute_tx(); -let gas_used = gas_remainig_before = vm.gas_remaining(); +let gas_used = gas_remaining_before - vm.gas_remaining(); ``` ## Gas estimation