From 4f40bd4f995a7a7e1adc99d9394b1d9b8412a915 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 18 Jul 2025 05:35:57 -0400 Subject: [PATCH] sample-code: Remove "Student" function from match_test --- sample-code/match_test.cl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sample-code/match_test.cl b/sample-code/match_test.cl index bc44598..8bfa418 100644 --- a/sample-code/match_test.cl +++ b/sample-code/match_test.cl @@ -5,10 +5,6 @@ struct Student { age: i32, } -fn Student(name: str, age: i32) -> Student { - Student { name, age } -} - fn match_test(student: Student) { match student { Student { name: "shark", age } => println("Found a shark of ", age, " year(s)"),