no :: in func decls
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Milestone 5: conditional optional unwrapping, guards, and multi-unwrap.
|
||||
|
||||
observe :: func(counter @mut i32, value ?i32) ?i32 {
|
||||
observe func(counter @mut i32, value ?i32) ?i32 {
|
||||
counter^ = counter^ + 1
|
||||
return value
|
||||
}
|
||||
|
||||
main :: func() i32 {
|
||||
main func() i32 {
|
||||
total i32 = 0
|
||||
|
||||
# present optional scalar -> binds v to the unwrapped value
|
||||
|
||||
Reference in New Issue
Block a user