diff options
Diffstat (limited to 'docs/enums.md')
| -rw-r--r-- | docs/enums.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/enums.md b/docs/enums.md index 4123fbc4..c73379f8 100644 --- a/docs/enums.md +++ b/docs/enums.md @@ -54,7 +54,7 @@ from a function with an explicit return type: enum ArgumentType(AnInt(x:Int), SomeText(text:Text)) enum ReturnType(Nothing, AnInt(x:Int)) -func increment(arg:ArgumentType)->ReturnType: +func increment(arg:ArgumentType -> ReturnType): when arg is AnInt(x): return AnInt(x + 1) is SomeText: |
