Skip to content

Commit 1cb8501

Browse files
committed
Change "pred" to "pure fn" within the compiler.
1 parent 2e89eda commit 1cb8501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/comp/syntax/ast_util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn binop_to_str(op: binop) -> str {
104104
}
105105
}
106106
107-
pred lazy_binop(b: binop) -> bool {
107+
pure fn lazy_binop(b: binop) -> bool {
108108
alt b { and. { true } or. { true } _ { false } }
109109
}
110110

src/comp/syntax/parse/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn to_str(r: lexer::reader, t: token) -> str {
180180
}
181181

182182

183-
pred can_begin_expr(t: token) -> bool {
183+
pure fn can_begin_expr(t: token) -> bool {
184184
alt t {
185185
LPAREN. { true }
186186
LBRACE. { true }

0 commit comments

Comments
 (0)