Skip to content

Commit

Permalink
Merge branch 'main' into better_log10_implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaida-Amethyst authored Jan 17, 2025
2 parents 7bd1922 + b73094c commit fe5d9e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ref/ref.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ pub fn map[T, R](self : Ref[T], f : (T) -> R) -> Ref[R] {
///
/// ```
/// let x = @ref.new(1)
/// x.protect(2, fn!(){
/// x.val = 3
/// })
/// x.protect(2, fn () { x.val = 3 })
/// assert_eq!(x.val, 1)
/// ```
pub fn protect[T, R](self : Ref[T], a : T, f : () -> R) -> R {
Expand Down

0 comments on commit fe5d9e8

Please sign in to comment.