diff --git a/reader/src/class_file_method.rs b/reader/src/class_file_method.rs index 2d73ed1..74e61ff 100644 --- a/reader/src/class_file_method.rs +++ b/reader/src/class_file_method.rs @@ -104,7 +104,7 @@ impl fmt::Display for ClassFileMethodCode { writeln!(f, " {address:3} {instruction:?}")?; } } else { - writeln!(f, " unparseable code: {:?}", self.code)?; + writeln!(f, " unparsable code: {:?}", self.code)?; } Ok(()) } diff --git a/vm/src/call_frame.rs b/vm/src/call_frame.rs index f0e9bd8..ff46624 100644 --- a/vm/src/call_frame.rs +++ b/vm/src/call_frame.rs @@ -82,7 +82,7 @@ enum InvokeKind { Static, /// Virtual instance methods will apply the virtual function resolution Virtual, - /// Invokation of an interface's method. Will apply the virtual function resolution + /// Invocation of an interface's method. Will apply the virtual function resolution Interface, } diff --git a/vm/src/call_stack.rs b/vm/src/call_stack.rs index 1dbaec1..12a3556 100644 --- a/vm/src/call_stack.rs +++ b/vm/src/call_stack.rs @@ -91,7 +91,7 @@ impl<'a> CallStack<'a> { Ok(code) } - /// Returns a Vec filled with one `Unitialized` per variable + /// Returns a Vec filled with one `Uninitialized` per variable fn prepare_locals( code: &ClassFileMethodCode, receiver: Option>, diff --git a/vm/src/gc.rs b/vm/src/gc.rs index d462fa3..46714e4 100644 --- a/vm/src/gc.rs +++ b/vm/src/gc.rs @@ -89,7 +89,7 @@ impl MemoryChunk { /// chunk, and then swaps the chunks. Finally, it updates all the given gc roots. /// /// Obviously, this wastes half the memory, which is why nobody uses this algorithm -/// in any real inmplementation. However, it is quite simple, and handles reference cycles, +/// in any real implementation. However, it is quite simple, and handles reference cycles, /// so it is the one I have chosen here. pub struct ObjectAllocator<'a> { current: MemoryChunk,