Skip to content

Commit

Permalink
Fix documentation comments in function.cairo and testing.cairo (#7425)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjl10 authored Mar 9, 2025
1 parent a41643f commit e034b80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion corelib/src/ops/function.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl FnOnceImpl<T, Args, +Destruct<T>, +Fn<T, Args>> of FnOnce<T, Args> {
///
/// 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
Expand Down
2 changes: 1 addition & 1 deletion corelib/src/testing.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit e034b80

Please sign in to comment.