Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
doonv committed Dec 30, 2023
1 parent d77c242 commit 03d2b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/builtin_parser/runner/unique_rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ impl<T: ?Sized> WeakRef<T> {
/// ```
/// use bevy_dev_console::builtin_parser::{Value, StrongRef};
///
/// fn add_to_reference(my_reference: StrongRef<Value>, add: f64) {
/// fn add_to_reference(my_reference: StrongRef<Value>, add: String) {
/// // currently you can only do it with `Value`
/// if let Value::Number(number) = &mut *my_reference.borrow_mut() {
/// *number += add;
/// if let Value::String(string) = &mut *my_reference.borrow_mut() {
/// *string += &add;
/// } else {
/// todo!();
/// }
Expand Down

0 comments on commit 03d2b12

Please sign in to comment.