Skip to content

Commit ebd2a2d

Browse files
committed
Remove code examples from core docs
1 parent 2759069 commit ebd2a2d

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

library/core/src/macros/mod.rs

-22
Original file line numberDiff line numberDiff line change
@@ -1529,17 +1529,6 @@ pub(crate) mod builtin {
15291529
/// - `INPUT_ACTIVITIES`: Specifies one valid activity for each input parameter.
15301530
/// - `OUTPUT_ACTIVITY`: Must not be set if the function implicitly returns nothing
15311531
/// (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-
/// ```
15431532
#[unstable(feature = "autodiff", issue = "124509")]
15441533
#[allow_internal_unstable(rustc_attrs)]
15451534
#[rustc_builtin_macro]
@@ -1559,17 +1548,6 @@ pub(crate) mod builtin {
15591548
/// - `INPUT_ACTIVITIES`: Specifies one valid activity for each input parameter.
15601549
/// - `OUTPUT_ACTIVITY`: Must not be set if the function implicitly returns nothing
15611550
/// (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-
/// ```
15731551
#[unstable(feature = "autodiff", issue = "124509")]
15741552
#[allow_internal_unstable(rustc_attrs)]
15751553
#[rustc_builtin_macro]

0 commit comments

Comments
 (0)