Skip to content

Commit 65add65

Browse files
authored
Merge pull request #2488 from rust-lang/autodiff-doc-updates
adjust autodiff docs, after splitting up autodiff into two macros
2 parents 1d958e9 + 68ea5d7 commit 65add65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/autodiff/internals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ The `std::autodiff` module in Rust allows differentiable programming:
22

33
```rust
44
#![feature(autodiff)]
5-
use std::autodiff::autodiff;
5+
use std::autodiff::*;
66

77
// f(x) = x * x, f'(x) = 2.0 * x
88
// bar therefore returns (x * x, 2.0 * x)
9-
#[autodiff(bar, Reverse, Active, Active)]
9+
#[autodiff_reverse(bar, Active, Active)]
1010
fn foo(x: f32) -> f32 { x * x }
1111

1212
fn main() {

0 commit comments

Comments
 (0)