diff --git a/wgpu-native/src/device.rs b/wgpu-native/src/device.rs index 349e0e389..9abded8be 100644 --- a/wgpu-native/src/device.rs +++ b/wgpu-native/src/device.rs @@ -135,7 +135,7 @@ struct ActiveSubmission { /// 1. When mapping is requested we add the buffer to the pending list of `mapped` buffers. /// 2. When `triage_referenced` is called, it checks the last submission index associated with each of the mapped buffer, /// and register the buffer with either a submission in flight, or straight into `ready_to_map` vector. -/// 3. when `ActiveSubmission` is retired, the mapped buffers associated with it are moved to `ready_to_map` vector. +/// 3. When `ActiveSubmission` is retired, the mapped buffers associated with it are moved to `ready_to_map` vector. /// 4. Finally, `handle_mapping` issues all the callbacks. struct PendingResources { @@ -1061,7 +1061,7 @@ pub fn device_create_bind_group( resource::TextureUsage::STORAGE, hal::image::Layout::General, ), - _ => panic!("Missmatched texture binding for {:?}", decl), + _ => panic!("Mismatched texture binding for {:?}", decl), }; let view = &texture_view_guard[id]; used.views.query(id, &view.life_guard.ref_count, DummyUsage); diff --git a/wgpu-native/src/track.rs b/wgpu-native/src/track.rs index 4a8a88daa..7b31d175d 100644 --- a/wgpu-native/src/track.rs +++ b/wgpu-native/src/track.rs @@ -108,7 +108,7 @@ pub type TextureViewTracker = Tracker; pub enum Stitch { /// Stitch to the init state of the other resource. Init, - /// Stitch to the last sttate of the other resource. + /// Stitch to the last state of the other resource. Last, }