mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 16:13:27 +00:00
Fix all spelling mistakes in history by typos tool
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
b29d3b5409
commit
86f09eef75
@ -188,7 +188,7 @@ impl InputDevice {
|
||||
|
||||
fn handle_irq(&self) {
|
||||
let callbacks = self.callbacks.read_irq_disabled();
|
||||
// Returns ture if there may be more events to handle
|
||||
// Returns true if there may be more events to handle
|
||||
let handle_event = |event: &EventBuf| -> bool {
|
||||
event.sync().unwrap();
|
||||
let event: VirtioInputEvent = event.read().unwrap();
|
||||
|
@ -61,7 +61,7 @@ impl SocketDevice {
|
||||
<< 32;
|
||||
|
||||
let mut recv_queue = VirtQueue::new(QUEUE_RECV, QUEUE_SIZE, transport.as_mut())
|
||||
.expect("createing recv queue fails");
|
||||
.expect("creating recv queue fails");
|
||||
let send_queue = VirtQueue::new(QUEUE_SEND, QUEUE_SIZE, transport.as_mut())
|
||||
.expect("creating send queue fails");
|
||||
let event_queue = VirtQueue::new(QUEUE_EVENT, QUEUE_SIZE, transport.as_mut())
|
||||
|
@ -103,7 +103,7 @@ impl fmt::Display for SocketError {
|
||||
Self::UnexpectedDataInPacket => write!(f, "No data is expected in the packet"),
|
||||
Self::InsufficientBufferSpaceInPeer => write!(f, "Peer has insufficient buffer space, try again later"),
|
||||
Self::RecycledWrongBuffer => write!(f, "Recycled a wrong buffer"),
|
||||
Self::QueueError(_) => write!(f,"Error encounted out of vsock itself!"),
|
||||
Self::QueueError(_) => write!(f,"Error encountered out of vsock itself!"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user