Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #384 from consentsam/patch-2
Browse files Browse the repository at this point in the history
refactor: fixes typo in Closures code
  • Loading branch information
critesjosh authored Sep 21, 2023
2 parents afd306a + e23ab0f commit a052400
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Inside the body of a lambda, you can use variables defined in the enclosing func
fn main() {
let x = 100;
let closure = || x + 150;
assert(closure() == 150);
assert(closure() == 250);
}
```

Expand Down

0 comments on commit a052400

Please sign in to comment.