Skip to content

Commit ddb1ae7

Browse files
committed
feat: update pi example
1 parent 0aeb3bc commit ddb1ae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/pi.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
use auto_rust::auto_implement;
22

33
#[auto_implement]
4-
#[doc = "This function calculates pi with a robust and very fast algorithm."]
4+
/// This function calculates pi with a robust and very fast algorithm.
55
fn calculate_pi_with_n_decimals(n: u32) -> f64 {
66
todo!()
77
}
88

99
fn main() {
1010
let result = calculate_pi_with_n_decimals(10);
1111
println!("pi: {}", result);
12+
// assert_eq!(result, 3.0418396189294032);
1213
}

0 commit comments

Comments
 (0)