@@ -89,8 +89,8 @@ use crate::{
89
89
/// A [`Command`] can return a [`Result`](crate::error::Result),
90
90
/// which will be passed to an [error handler](crate::error) if the `Result` is an error.
91
91
///
92
- /// The [ default error handler](crate::error::default_error_handler) panics.
93
- /// It can be configured via [`set_global_default_error_handler `](crate::error::set_global_default_error_handler) .
92
+ /// The default error handler panics. It can be configured via
93
+ /// the [`DefaultErrorHandler `](crate::error::DefaultErrorHandler) resource .
94
94
///
95
95
/// Alternatively, you can customize the error handler for a specific command
96
96
/// by calling [`Commands::queue_handled`].
@@ -509,7 +509,7 @@ impl<'w, 's> Commands<'w, 's> {
509
509
/// Pushes a generic [`Command`] to the command queue.
510
510
///
511
511
/// If the [`Command`] returns a [`Result`],
512
- /// it will be handled using the [default error handler](crate::error::default_error_handler ).
512
+ /// it will be handled using the [default error handler](crate::error::DefaultErrorHandler ).
513
513
///
514
514
/// To use a custom error handler, see [`Commands::queue_handled`].
515
515
///
@@ -695,7 +695,7 @@ impl<'w, 's> Commands<'w, 's> {
695
695
/// This command will fail if any of the given entities do not exist.
696
696
///
697
697
/// It will internally return a [`TryInsertBatchError`](crate::world::error::TryInsertBatchError),
698
- /// which will be handled by the [default error handler](crate::error::default_error_handler ).
698
+ /// which will be handled by the [default error handler](crate::error::DefaultErrorHandler ).
699
699
#[ track_caller]
700
700
pub fn insert_batch < I , B > ( & mut self , batch : I )
701
701
where
@@ -726,7 +726,7 @@ impl<'w, 's> Commands<'w, 's> {
726
726
/// This command will fail if any of the given entities do not exist.
727
727
///
728
728
/// It will internally return a [`TryInsertBatchError`](crate::world::error::TryInsertBatchError),
729
- /// which will be handled by the [default error handler](crate::error::default_error_handler ).
729
+ /// which will be handled by the [default error handler](crate::error::DefaultErrorHandler ).
730
730
#[ track_caller]
731
731
pub fn insert_batch_if_new < I , B > ( & mut self , batch : I )
732
732
where
@@ -1223,8 +1223,8 @@ impl<'w, 's> Commands<'w, 's> {
1223
1223
/// An [`EntityCommand`] can return a [`Result`](crate::error::Result),
1224
1224
/// which will be passed to an [error handler](crate::error) if the `Result` is an error.
1225
1225
///
1226
- /// The [ default error handler](crate::error::default_error_handler) panics.
1227
- /// It can be configured via [`set_global_default_error_handler `](crate::error::set_global_default_error_handler) .
1226
+ /// The default error handler panics. It can be configured via
1227
+ /// the [`DefaultErrorHandler `](crate::error::DefaultErrorHandler) resource .
1228
1228
///
1229
1229
/// Alternatively, you can customize the error handler for a specific command
1230
1230
/// by calling [`EntityCommands::queue_handled`].
@@ -1767,7 +1767,7 @@ impl<'a> EntityCommands<'a> {
1767
1767
/// Pushes an [`EntityCommand`] to the queue,
1768
1768
/// which will get executed for the current [`Entity`].
1769
1769
///
1770
- /// The [default error handler](crate::error::default_error_handler )
1770
+ /// The [default error handler](crate::error::DefaultErrorHandler )
1771
1771
/// will be used to handle error cases.
1772
1772
/// Every [`EntityCommand`] checks whether the entity exists at the time of execution
1773
1773
/// and returns an error if it does not.
0 commit comments