From 3f99bd62c695a3819ba97050f2ee32ba2ebe2212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 6 Oct 2013 19:36:59 +0200 Subject: [PATCH] Use `use` instead of `pub use` to import modules on the examples. --- README.md | 8 ++++---- src/lib.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9a09b519..9da1f02a 100644 --- a/README.md +++ b/README.md @@ -9,25 +9,25 @@ ## Using **nalgebra** All the functionalities of **nalgebra** are grouped in one place: the `na` module. This module re-exports everything and includes free functions for all traits methods. -Free functions are useful if you prefer doing something like: `na::dot(v1, v2)` instead of +Free functions are useful if you prefer doing something like `na::dot(v1, v2)` instead of `v1.dot(v2)`. * You can import the whole prelude, including free functions, using: ```.rust -pub use nalgebra::na::*; +use nalgebra::na::*; ``` * If you dont want to import everything but only every trait: ```.rust -pub use nalgebra::traits::*; +use nalgebra::traits::*; ``` * If you dont want to import everything but only every structure: ```.rust -pub use nalgebra::structs::*; +use nalgebra::structs::*; ``` Of course, you can still import `nalgebra::na` alone, and get anything you want using the `na` prefix. diff --git a/src/lib.rs b/src/lib.rs index 8a25b5d5..88c20d1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,25 +10,25 @@ ## Using **nalgebra** All the functionalities of **nalgebra** are grouped in one place: the `na` module. This module re-exports everything and includes free functions for all traits methods. -Free functions are useful if you prefer doing something like: `na::dot(v1, v2)` instead of +Free functions are useful if you prefer doing something like `na::dot(v1, v2)` instead of `v1.dot(v2)`. * You can import the whole prelude, including free functions, using: ```.rust -pub use nalgebra::na::*; +use nalgebra::na::*; ``` * If you dont want to import everything but only every trait: ```.rust -pub use nalgebra::traits::*; +use nalgebra::traits::*; ``` * If you dont want to import everything but only every structure: ```.rust -pub use nalgebra::structs::*; +use nalgebra::structs::*; ``` Of course, you can still import `nalgebra::na` alone, and get anything you want using the `na` prefix.