From e034b807ce4e62eb388e8ec2ccd1b0aa865754c8 Mon Sep 17 00:00:00 2001 From: "fuder.eth" <139509124+vtjl10@users.noreply.github.com> Date: Sun, 9 Mar 2025 13:51:09 +0200 Subject: [PATCH] Fix documentation comments in function.cairo and testing.cairo (#7425) --- corelib/src/ops/function.cairo | 2 +- corelib/src/testing.cairo | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/corelib/src/ops/function.cairo b/corelib/src/ops/function.cairo index 5f5a25bb331..4719492bcee 100644 --- a/corelib/src/ops/function.cairo +++ b/corelib/src/ops/function.cairo @@ -68,7 +68,7 @@ impl FnOnceImpl, +Fn> of FnOnce { /// /// Instances of `Fn` can be called repeatedly. /// -/// `Fn` is implemented automatically by closures which only whose captured variable are all `Copy`. +/// `Fn` is implemented automatically by closures whose captured variables are all `Copy`. /// Additionally, for any type `F` that implements `Fn`, `@F` implements `Fn`, too. /// /// Since [`FnOnce`] is implemented for all implementers of `Fn`, any instance of `Fn` can be used diff --git a/corelib/src/testing.cairo b/corelib/src/testing.cairo index d2cfdb0eaa2..e78b7ed79df 100644 --- a/corelib/src/testing.cairo +++ b/corelib/src/testing.cairo @@ -41,7 +41,7 @@ pub extern fn get_available_gas() -> u128 implicits(GasBuiltin) nopanic; /// Returns the amount of gas available in the `GasBuiltin`, as well as the amount of gas unused in /// the local wallet. /// -/// Useful for asserting that a certain amount of gas used. +/// Useful for asserting that a certain amount of gas was used. /// Note: This function call costs exactly `2300` gas, so this may be ignored in calculations. /// # Examples ///