diff options
| author | Ted Horst <ted.horst@earthlink.net> | 2014-04-01 12:58:13 -0500 |
|---|---|---|
| committer | Ted Horst <ted.horst@earthlink.net> | 2014-04-01 12:58:13 -0500 |
| commit | a8308fbb76a11ba7b8c2e44a1aa51df437e471d7 (patch) | |
| tree | c78be6eaa5d3dead77c613664f860c20ed28ad13 | |
| parent | b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64 (diff) | |
| download | rust-a8308fbb76a11ba7b8c2e44a1aa51df437e471d7.tar.gz rust-a8308fbb76a11ba7b8c2e44a1aa51df437e471d7.zip | |
make Cmplx fields public
| -rw-r--r-- | src/libnum/complex.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnum/complex.rs b/src/libnum/complex.rs index 3dcd73568c6..069dd2164f5 100644 --- a/src/libnum/complex.rs +++ b/src/libnum/complex.rs @@ -25,9 +25,9 @@ use std::num::{Zero,One,ToStrRadix}; #[deriving(Eq,Clone)] pub struct Cmplx<T> { /// Real portion of the complex number - re: T, + pub re: T, /// Imaginary portion of the complex number - im: T + pub im: T } pub type Complex32 = Cmplx<f32>; |
