From 0e769f3b298e38f06cf2cbc2647ca8b0f1ec9d94 Mon Sep 17 00:00:00 2001 From: Mako <61922615+Makonede@users.noreply.github.com> Date: Tue, 16 Dec 2025 21:43:02 -0800 Subject: [PATCH] chore: fix typo in `reg_write` documentation Signed-off-by: Mako <61922615+Makonede@users.noreply.github.com> --- crates/unicorn/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/unicorn/src/lib.rs b/crates/unicorn/src/lib.rs index 4ee1237..c250247 100644 --- a/crates/unicorn/src/lib.rs +++ b/crates/unicorn/src/lib.rs @@ -543,7 +543,7 @@ impl<'a, D> Unicorn<'a, D> { unsafe { uc_mem_protect(self.get_handle(), address, size, perms.0 as _) }.into() } - /// Write an unsigned value from a register. + /// Write an unsigned value to a register. pub fn reg_write>(&mut self, regid: T, value: u64) -> Result<(), uc_error> { unsafe { uc_reg_write(self.get_handle(), regid.into(), (&raw const value).cast()) }.into() }