Skip to content

Commit cb61ec7

Browse files
committed
style: better conforms to style guide
1 parent 7d83aa2 commit cb61ec7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

release-content/release-notes/automatic_directional_navigation.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ commands.spawn((
2929
));
3030
```
3131

32-
To leverage automatic navigation, use the `AutoDirectionalNavigator` system parameter instead of the `DirectionalNavigation` system parameter.
32+
To leverage automatic navigation, use the `AutoDirectionalNavigator` system parameter instead of the `DirectionalNavigation` system parameter:
33+
34+
```rust
35+
fn my_navigation_system(mut auto_directional_navigator: AutoDirectionalNavigator) {
36+
// ...
37+
auto_directional_navigator.navigate(CompassOctant::East);
38+
// ...
39+
}
40+
```
3341

3442
That's it! The `DirectionalNavigationPlugin` will set up the resources that `AutoDirectionalNavigator` uses to function.
3543

0 commit comments

Comments
 (0)