aboutsummaryrefslogtreecommitdiff
path: root/crates/sloth_vm/src/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/sloth_vm/src/value.rs')
-rw-r--r--crates/sloth_vm/src/value.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/sloth_vm/src/value.rs b/crates/sloth_vm/src/value.rs
index f149c0e..4450b5a 100644
--- a/crates/sloth_vm/src/value.rs
+++ b/crates/sloth_vm/src/value.rs
@@ -35,14 +35,14 @@ pub enum ObjectType {
}
pub struct Function {
- pub(crate) name: Option<String>,
- pub(crate) chunk: Chunk,
- pub(crate) arity: u8,
- pub(crate) returns_value: bool,
+ pub name: Option<String>,
+ pub chunk: Chunk,
+ pub arity: u8,
+ pub returns_value: bool,
}
impl Function {
- pub(crate) fn root(chunk: Chunk) -> Self {
+ pub fn root(chunk: Chunk) -> Self {
Self {
name: None,
chunk,