Skip to content

Commit 7eb678d

Browse files
authored
Fix the standard library specification
1 parent 928f02a commit 7eb678d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ Sets the file pointer in the file `f` to the given `offset` from the `origin` ,
12421242
fn remove*(name: str): int
12431243
```
12441244

1245-
Opens the file specified by the `name`. Returns 0 if successful.
1245+
Removes the file specified by the `name`. Returns 0 if successful.
12461246

12471247
```
12481248
fn println*(s: str): int
@@ -1319,7 +1319,7 @@ Returns the number of command line parameters.
13191319
fn argv*(i: int): str
13201320
```
13211321

1322-
Returns the `i`-th command line parameter.
1322+
Returns the `i`-th command line parameter, where `i` should be between 0 and `argc() - 1 ` inclusive.
13231323

13241324
## Embedding API
13251325

0 commit comments

Comments
 (0)