File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: deefb1f4b7bb6fc9a4145d698bea9cbf5953bd03
2
+ refs/heads/master: 8a4be8080b434fec90d8b519414f27e219971ace
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5
5
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
Original file line number Diff line number Diff line change @@ -268,10 +268,8 @@ pub trait Trigonometric {
268
268
/// ```rust
269
269
/// let y = 3f32.sqrt();
270
270
/// let x = 1f32;
271
- /// let pi_3 = 1.04719758f32;
272
- /// assert_approx_eq!(y.atan2(&x), pi_3);
273
- /// let neg_2_pi_3 = -2.09439516f32;
274
- /// assert_approx_eq!((-y).atan2(&(-x)), neg_2_pi_3);
271
+ /// assert_approx_eq!(y.atan2(&x), f32::consts::PI / 3f32);
272
+ /// assert_approx_eq!((-y).atan2(&(-x)), - 2f32 * f32::consts::PI / 3f32);
275
273
/// ```
276
274
fn atan2 ( & self , other : & Self ) -> Self ;
277
275
You can’t perform that action at this time.
0 commit comments