We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
///...
/**...*/
1 parent 8138c35 commit 46e6e42Copy full SHA for 46e6e42
src/libnum/complex.rs
@@ -36,10 +36,8 @@ impl<T: Clone + Num> Complex<T> {
36
Complex { re: re, im: im }
37
}
38
39
- /**
40
- Returns the square of the norm (since `T` doesn't necessarily
41
- have a sqrt function), i.e. `re^2 + im^2`.
42
- */
+ /// Returns the square of the norm (since `T` doesn't necessarily
+ /// have a sqrt function), i.e. `re^2 + im^2`.
43
#[inline]
44
pub fn norm_sqr(&self) -> T {
45
self.re * self.re + self.im * self.im
0 commit comments