Update README.md: extern mod -> extern crate

This commit is contained in:
Jim Garrison 2014-06-07 17:07:03 -07:00
parent 5066d6b9de
commit bba2278b64

View File

@ -25,7 +25,7 @@ The preferred way to use **nalgebra** is to import types and traits explicitly,
free-functions using the `na::` prefix: free-functions using the `na::` prefix:
```.rust ```.rust
extern mod nalgebra; extern crate nalgebra;
use nalgebra::na::{Vec3, Rot3, Rotation}; use nalgebra::na::{Vec3, Rot3, Rotation};
use nalgebra::na; use nalgebra::na;
@ -57,7 +57,7 @@ and keeps an optimized set of tools for computational graphics and physics. Thos
For example, the following works: For example, the following works:
```rust ```rust
extern mod nalgebra; extern crate nalgebra;
use nalgebra::na::{Vec3, Mat3}; use nalgebra::na::{Vec3, Mat3};
use nalgebra::na; use nalgebra::na;