Skip to content

Commit

Permalink
std: fix cutted spellcheck and remove from spellcheck ignore list
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 15, 2025
1 parent b35b2e1 commit a1aadcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ extend-ignore-identifiers-re = [
"sur", "leasure", "asure", "nulll", "finf",
"iy", "ERROR_FILENAME_EXCED_RANGE", "FLE",
"nam", "ND", "eisDST", "inh", "Vai", "VAI",
"fo", "hel", "IST", "Commun", "cutted"
"fo", "hel", "IST", "Commun"
]
4 changes: 2 additions & 2 deletions std/jule/parser/parser.jule
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ fn range(mut &i: int, open: token::Id, close: token::Id, mut &tokens: []&token::
ret tokens[start:i-1]
}

// rangeLast returns last range from tokens.
// Returns last range from tokens.
// Returns tokens without range tokens and range tokens.
// Range tokens includes left and right range tokens.
//
// Special cases are;
// rangeLast(tokens) = tokens, nil if len(tokens) == 0
// rangeLast(tokens) = tokens, nil if tokens is not has range at last
fn rangeLast(mut &tokens: []&token::Token): (cutted: []&token::Token, cut: []&token::Token) {
fn rangeLast(mut &tokens: []&token::Token): (rest: []&token::Token, cut: []&token::Token) {
if len(tokens) == 0 {
ret tokens, nil
}
Expand Down

0 comments on commit a1aadcc

Please sign in to comment.