@@ -1529,16 +1529,6 @@ pub(crate) mod builtin {
1529
1529
/// - `INPUT_ACTIVITIES`: Specifies one valid activity for each input parameter.
1530
1530
/// - `OUTPUT_ACTIVITY`: Must not be set if the function implicitly returns nothing
1531
1531
/// (or explicitly returns `-> ()`). Otherwise, it must be set to one of the allowed activities.
1532
- ///
1533
- /// # Example
1534
- ///
1535
- /// ```rust
1536
- /// use std::autodiff::autodiff_forward;
1537
- ///
1538
- /// #[autodiff_forward(df, Dual, Dual, Dual)]
1539
- /// fn f(x: f64, y: f64) -> f64 {
1540
- /// x * y
1541
- /// }
1542
1532
/// ```
1543
1533
#[ unstable( feature = "autodiff" , issue = "124509" ) ]
1544
1534
#[ allow_internal_unstable( rustc_attrs) ]
@@ -1559,16 +1549,6 @@ pub(crate) mod builtin {
1559
1549
/// - `INPUT_ACTIVITIES`: Specifies one valid activity for each input parameter.
1560
1550
/// - `OUTPUT_ACTIVITY`: Must not be set if the function implicitly returns nothing
1561
1551
/// (or explicitly returns `-> ()`). Otherwise, it must be set to one of the allowed activities.
1562
- ///
1563
- /// # Example
1564
- ///
1565
- /// ```rust
1566
- /// use std::autodiff::autodiff_reverse;
1567
- ///
1568
- /// #[autodiff_reverse(df, Active, Active, Active)]
1569
- /// fn f(x: f64, y: f64) -> f64 {
1570
- /// x * y
1571
- /// }
1572
1552
/// ```
1573
1553
#[ unstable( feature = "autodiff" , issue = "124509" ) ]
1574
1554
#[ allow_internal_unstable( rustc_attrs) ]
0 commit comments