Skip to content

Commit

Permalink
fix wether and gen builtin funcs again
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs committed Sep 1, 2024
1 parent 8623b4f commit 6c193e5
Show file tree
Hide file tree
Showing 5 changed files with 2,043 additions and 730 deletions.
2 changes: 1 addition & 1 deletion dev/src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ nfr("delete_file", "file", "S", "B", "deletes a file, returns false if it wasn't
return Value(ok);
});

nfr("exists_file", "file", "S", "B", "checks wether a file exists.",
nfr("exists_file", "file", "S", "B", "checks whether a file exists.",
[](StackPtr &, VM &, Value &file) {
auto ok = FileExists(file.sval()->strv(), false);
return Value(ok);
Expand Down
2 changes: 1 addition & 1 deletion dev/src/lobster/codegen.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ struct CodeGen {
ser_ids.resize(max_ser_ids, (type_elem_t)-1);
for (auto udt : parser.st.udttable) {
if (!udt->g.is_abstract) {
// We generate a type table for every UDT regardless of wether it is referred to
// We generate a type table for every UDT regardless of whether it is referred to
// anywhere, for example (sub)classes may be constructed by deserializing them and
// not in code.
udt->ComputeSizes();
Expand Down
Loading

0 comments on commit 6c193e5

Please sign in to comment.