File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ Error description. A zero `code` means no error.
32
32
```
33
33
type StdErr* = enum {
34
34
ok = 0 // No error
35
- buffer = 1 // Wrong buffer size
36
- ptr = 2 // Pointers cannot be read or written
37
- nullf = 3 // File is null
38
- eof = 4 // End of file
35
+ assert = 1 // Assertion failed
36
+ buffer = 2 // Wrong buffer size
37
+ ptr = 3 // Pointers cannot be read or written
38
+ nullf = 4 // File is null
39
+ eof = 5 // End of file
39
40
}
40
41
```
41
42
@@ -361,7 +362,7 @@ fn main() {
361
362
less := fn (x: any): bool |max| {return int(x) < max}
362
363
sum := fn (x, y: any): any {return int(x) + int(y)}
363
364
364
- result := int(fnc. Array(data).transform(sqr).filter(less).reduce(sum))
365
+ result := int(fnc:: Array(data).transform(sqr).filter(less).reduce(sum))
365
366
printf("Sum of all squares less than %lld = %lld \n", max, result)
366
367
}
367
368
```
You can’t perform that action at this time.
0 commit comments