Skip to content

Commit

Permalink
Fix ViewMut::as_view doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
leudz committed Jan 15, 2025
1 parent 6fa6c1c commit d37f8f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/views/view_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ where
/// One case where this method shines is for calling a system in another system.\
/// `sys_b` cannot use a reference or it wouldn't work as a system anymore.
/// ```rust
/// # use shipyard::{track ,Component, View, ViewMut, World};
/// # let mut world = World::new();
/// # struct A;
/// # impl Component for A { type Tracking = track::Untracked; };
/// # struct B;
/// # impl Component for B { type Tracking = track::Untracked; };
///
/// fn sys_a(vm_compA: ViewMut<A>) {
/// // -- SNIP --
///
Expand Down

0 comments on commit d37f8f9

Please sign in to comment.