Skip to content

Commit c944018

Browse files
authored
Fix some documentation errors
1 parent 30b6b24 commit c944018

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/lib.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ Error description. A zero `code` means no error.
3232
```
3333
type StdErr* = enum {
3434
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
3940
}
4041
```
4142

@@ -361,7 +362,7 @@ fn main() {
361362
less := fn (x: any): bool |max| {return int(x) < max}
362363
sum := fn (x, y: any): any {return int(x) + int(y)}
363364
364-
result := int(fnc.Array(data).transform(sqr).filter(less).reduce(sum))
365+
result := int(fnc::Array(data).transform(sqr).filter(less).reduce(sum))
365366
printf("Sum of all squares less than %lld = %lld \n", max, result)
366367
}
367368
```

0 commit comments

Comments
 (0)