Skip to content

Fix typos #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reader/src/class_file_method.rs
Original file line number Diff line number Diff line change
@@ -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)?;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've scrolled through all of the 78 google results for https://www.google.com/search?q=%22unparseable%22+%22dictionary%22 , and there is only wiktionary and copies of wiktionary. Not one authoritative source.

}
Ok(())
}
2 changes: 1 addition & 1 deletion vm/src/call_frame.rs
Original file line number Diff line number Diff line change
@@ -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,
}

2 changes: 1 addition & 1 deletion vm/src/call_stack.rs
Original file line number Diff line number Diff line change
@@ -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<AbstractObject<'a>>,
2 changes: 1 addition & 1 deletion vm/src/gc.rs
Original file line number Diff line number Diff line change
@@ -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,