Updated closure syntax

This commit is contained in:
2026-06-23 17:41:49 +02:00
parent e4b7b4abf9
commit 2f12f5ac53
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ pub void test_as_cast() {
}
pub void test_closure() {
let add = fn(a, b) -> a + b;
let add = (a, b) => a + b;
assert_eq!(add(2, 3), 5);
}