summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 1a39221..748ca1b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -9,20 +9,23 @@
//!
//! Examples:
//! ```
-//! ...
//! use matrix::Matrix;
-//! let m = Matrix::from_str("1,2,3\n4,5,6\n7,8,9");
+//! use std::str::FromStr;
+//! let m = Matrix::from_str("1,2,3\n4,5,6\n7,8,9").expect("Expected this to work");
//! println!("Matrix string formatting:\n{}", m);
//! println!("Evaluate determinant of matrix: {}", m.determinant());
//! println!("Transpose of matrix m:\n{}", m.transpose());
-//! ...
+//!
//! ```
-pub mod types;
+mod matrix;
+pub mod error;
#[cfg(test)]
mod tests;
+pub use matrix::Matrix;
+
pub fn test() {
println!("Testing code here");
}