about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTed Horst <ted.horst@earthlink.net>2014-04-01 12:58:13 -0500
committerTed Horst <ted.horst@earthlink.net>2014-04-01 12:58:13 -0500
commita8308fbb76a11ba7b8c2e44a1aa51df437e471d7 (patch)
treec78be6eaa5d3dead77c613664f860c20ed28ad13
parentb8ef9fd9c9f642ce7b8aed82782a1ed745d08d64 (diff)
downloadrust-a8308fbb76a11ba7b8c2e44a1aa51df437e471d7.tar.gz
rust-a8308fbb76a11ba7b8c2e44a1aa51df437e471d7.zip
make Cmplx fields public
-rw-r--r--src/libnum/complex.rs4
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>;