Skip to content

Commit b5e52bb

Browse files
committed
Update docs, remove unused function
Signed-off-by: Flipez <[email protected]>
1 parent 4b65167 commit b5e52bb

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

docs/content/docs/control_expressions/foreach.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ end
5454
=> "test"
5555
```
5656

57-
It is possible to use `next` or `break` inside a loop. Both cane take one argument which will returned, otherwise nil will be returned.
57+
It is possible to use `next` or `break` inside a loop.
5858

5959
```js
6060
foreach i in 5

parser/nil.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@ package parser
22

33
import (
44
"github.com/flipez/rocket-lang/ast"
5-
"github.com/flipez/rocket-lang/token"
65
)
76

87
func (p *Parser) parseNil() ast.Expression {
98
return &ast.Nil{Token: p.curToken}
109
}
11-
12-
func (p *Parser) createNil() ast.Expression {
13-
exp := &ast.Nil{Token: p.curToken}
14-
exp.Token.Literal = "nil"
15-
exp.Token.Type = token.NIL
16-
17-
return exp
18-
}

0 commit comments

Comments
 (0)