Skip to content

Commit 61e9145

Browse files
committed
Fix doctests
Signed-off-by: Michael X. Grey <grey@openrobotics.org>
1 parent 4b0e630 commit 61e9145

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ where
501501
/// that trait, then you can use [`Self::cancel_on_quiet_err`] instead.
502502
///
503503
/// ```
504-
/// use crate::{*, testing::*};
504+
/// use bevy_impulse::{*, testing::*};
505505
///
506506
/// let mut context = TestingContext::minimal_plugins();
507507
///

src/request.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ pub trait RequestExt<'w, 's> {
3333
/// ```
3434
/// use bevy_impulse::{*, testing::*};
3535
/// let mut context = TestingContext::headless_plugins();
36-
/// let mut promise = context.build(|commands| {
37-
/// let request = SpawnCube { position: Vec3::ZERO, size: 0.1 };
36+
/// let mut promise = context.command(|commands| {
3837
/// let service = commands.spawn_service(spawn_cube.into_blocking_service());
3938
///
4039
/// commands
41-
/// .request(request, service)
40+
/// .request(SpawnCube { position: Vec3::ZERO, size: 0.1 }, service)
4241
/// .take()
4342
/// .response
4443
/// });

0 commit comments

Comments
 (0)