diff --git a/lib/runtime-core/src/state.rs b/lib/runtime-core/src/state.rs index fb19476b1..55809e965 100644 --- a/lib/runtime-core/src/state.rs +++ b/lib/runtime-core/src/state.rs @@ -614,7 +614,7 @@ pub mod x64_decl { /// Returns the instruction prefix for `movq %this_reg, ?(%rsp)`. /// - /// To build a instruction, append the memory location as a 32-bit + /// To build an instruction, append the memory location as a 32-bit /// offset to the stack pointer to this prefix. pub fn prefix_mov_to_stack(&self) -> Option<&'static [u8]> { Some(match *self { @@ -650,7 +650,7 @@ pub mod x64_decl { } impl ArgumentRegisterAllocator { - /// Allocates a register for argument type `ty`. Returns `None` if no register is available for this type.. + /// Allocates a register for argument type `ty`. Returns `None` if no register is available for this type. pub fn next(&mut self, ty: Type) -> Option { static GPR_SEQ: &'static [GPR] = &[GPR::RDI, GPR::RSI, GPR::RDX, GPR::RCX, GPR::R8, GPR::R9];