Skip to content

Commit

Permalink
fix doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Feb 24, 2024
1 parent 69d929b commit fac5f1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eval/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub fn calc_index<E>(
/// # Example
///
/// ```
/// # #[cfg(feature = "internals")] {
/// # use rhai::{Dynamic, Target};
/// // Normal `Dynamic` value
/// let mut value = Dynamic::from(42_i64);
Expand All @@ -98,6 +99,7 @@ pub fn calc_index<E>(
/// let mut value = Dynamic::from(42_i64);
/// let value_ref = &mut value;
/// let target: Target = value.into();
/// # }
/// ```
#[derive(Debug)]
#[must_use]
Expand Down

0 comments on commit fac5f1c

Please sign in to comment.