Skip to content

Commit 74a7d98

Browse files
committed
Rename destory_vm() tp destroy_vm() and destory() to destroy()
1 parent 5cecbb2 commit 74a7d98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub fn create_vm() -> Error {
107107
}
108108

109109
/// Destroys the VM instance associated with the current Mach task
110-
pub fn destory_vm() -> Error {
110+
pub fn destroy_vm() -> Error {
111111
match_error_code(unsafe {
112112
hv_vm_destroy()
113113
})
@@ -268,7 +268,7 @@ impl vCPU {
268268
}
269269

270270
/// Destroys the vCPU instance associated with the current thread
271-
pub fn destory(&self) -> Error {
271+
pub fn destroy(&self) -> Error {
272272
match_error_code(unsafe {
273273
hv_vcpu_destroy(self.id as hv_vcpuid_t)
274274
})

0 commit comments

Comments
 (0)