Skip to content

Commit 2759069

Browse files
committed
Fix missing imports to macro rustdoc
1 parent aa6d358 commit 2759069

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/core/src/macros/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,8 @@ pub(crate) mod builtin {
15331533
/// # Example
15341534
///
15351535
/// ```rust
1536+
/// use std::autodiff::autodiff_forward;
1537+
///
15361538
/// #[autodiff_forward(df, Dual, Dual, Dual)]
15371539
/// fn f(x: f64, y: f64) -> f64 {
15381540
/// x * y
@@ -1561,6 +1563,8 @@ pub(crate) mod builtin {
15611563
/// # Example
15621564
///
15631565
/// ```rust
1566+
/// use std::autodiff::autodiff_reverse;
1567+
///
15641568
/// #[autodiff_reverse(df, Active, Active, Active)]
15651569
/// fn f(x: f64, y: f64) -> f64 {
15661570
/// x * y

0 commit comments

Comments
 (0)