diff options
| author | Vinzent Steinberg <Vinzent.Steinberg@gmail.com> | 2014-08-29 11:28:07 -0400 |
|---|---|---|
| committer | Vinzent Steinberg <Vinzent.Steinberg@gmail.com> | 2014-08-29 13:39:25 -0400 |
| commit | 46e6e42d7a17d33da0fd13f2afd81a566ec08ceb (patch) | |
| tree | 05cdbd2228ec1a821a727e1237e92e3a566c6e0f | |
| parent | 8138c3574fcd75c0857cf2a8e9a8f905c2774649 (diff) | |
| download | rust-46e6e42d7a17d33da0fd13f2afd81a566ec08ceb.tar.gz rust-46e6e42d7a17d33da0fd13f2afd81a566ec08ceb.zip | |
complex: use `///...` instead of `/**...*/` for comment
| -rw-r--r-- | src/libnum/complex.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libnum/complex.rs b/src/libnum/complex.rs index 0fcb7436b99..24c99a38bd9 100644 --- a/src/libnum/complex.rs +++ b/src/libnum/complex.rs @@ -36,10 +36,8 @@ impl<T: Clone + Num> Complex<T> { Complex { re: re, im: im } } - /** - Returns the square of the norm (since `T` doesn't necessarily - have a sqrt function), i.e. `re^2 + im^2`. - */ + /// Returns the square of the norm (since `T` doesn't necessarily + /// have a sqrt function), i.e. `re^2 + im^2`. #[inline] pub fn norm_sqr(&self) -> T { self.re * self.re + self.im * self.im |
