Skip to content

Commit

Permalink
chore: fix incorrect field/var names
Browse files Browse the repository at this point in the history
  • Loading branch information
StunxFS committed Dec 17, 2023
1 parent 045f6a4 commit 60368bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/rivet/src/codegen/mir/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct ModuleIR < traits.Stringable {
pub name: string;
pub mut structs: []Struct;
pub mut globals: []Global;
pub mut vtables: []VEnv;
pub mut vtables: []VTable;
pub mut externs: []Func;
pub mut funcs: []Func;

Expand Down Expand Up @@ -108,7 +108,7 @@ pub struct Global < traits.Stringable {
}

#[boxed]
pub struct VEnv {
pub struct VTable {
pub funcs: []Func;
}

Expand Down
6 changes: 3 additions & 3 deletions lib/rivet/src/utils/mod.ri
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub const CR: uint8 := 13;

pub var mut stderrSupportStyles := styles.stderr_support_styles();

pub var tabsEnv := [
pub var tabsTable := [
"",
"\t",
"\t\t",
Expand All @@ -27,8 +27,8 @@ pub var tabsEnv := [
];

pub func tabs(n: uint) -> string {
return if n < tabsEnv.len {
tabsEnv[n]
return if n < tabsTable.len {
tabsTable[n]
} else {
"\t".repeat(n)
};
Expand Down

0 comments on commit 60368bf

Please sign in to comment.