diff --git a/vhost-device-can/src/can.rs b/vhost-device-can/src/can.rs index 6fc0355..1dec2e1 100644 --- a/vhost-device-can/src/can.rs +++ b/vhost-device-can/src/can.rs @@ -166,7 +166,7 @@ impl CanController { } }; - // Set non-blocking otherwise the device will not restart immediatelly + // Set non-blocking otherwise the device will not restart immediately // when the VM closes, and a new canfd message needs to be received for // restart to happen. // This caused by the fact that the thread is stacked in read function @@ -257,7 +257,7 @@ impl CanController { } }; - // Grab the data to be tranfered + // Grab the data to be transferred let data_len = tx_request.length.to_native() as usize; let data: Vec = tx_request.sdu.iter().cloned().take(data_len).collect(); diff --git a/vhost-device-can/src/vhu_can.rs b/vhost-device-can/src/vhu_can.rs index af375b5..a9330fb 100644 --- a/vhost-device-can/src/vhu_can.rs +++ b/vhost-device-can/src/vhu_can.rs @@ -775,13 +775,13 @@ mod tests { // Empty descriptor chain should be ignored assert!(vu_can_backend .process_rx_requests(Vec::::new(), &vring) - .expect("Fail to examin empty rx vring")); + .expect("Fail to examine empty rx vring")); assert!(vu_can_backend .process_tx_requests(Vec::::new(), &vring) - .expect("Fail to examin empty tx vring")); + .expect("Fail to examine empty tx vring")); assert!(vu_can_backend .process_ctrl_requests(Vec::::new(), &vring) - .expect("Fail to examin empty ctrl vring")); + .expect("Fail to examine empty ctrl vring")); } #[test] @@ -930,7 +930,7 @@ mod tests { assert_eq!(VIRTIO_CAN_RESULT_NOT_OK, can_frame_res); - // Test 4: Successfull test for VIRTIO_CAN_SET_CTRL_MODE_START + // Test 4: Successful test for VIRTIO_CAN_SET_CTRL_MODE_START let can_mes_len = size_of::(); let desc_chain = build_desc_chain_mem( &mem, @@ -966,7 +966,7 @@ mod tests { assert_eq!(VIRTIO_CAN_RESULT_OK, can_frame_res); - // Test 5: Successfull test for VIRTIO_CAN_SET_CTRL_MODE_STOP + // Test 5: Successful test for VIRTIO_CAN_SET_CTRL_MODE_STOP let can_mes_len = size_of::(); let desc_chain = build_desc_chain_mem( &mem,