tutorial.md: tiny correction for --crate-type=lib

Compiling a crate with `rustc --crate-type=lib` produces an rlib file, not a shared object. The latter is only produced for `--crate-type=dylib`.
This commit is contained in:
Niklas Koep 2014-06-17 15:28:59 +02:00
parent feb294ca11
commit 7fec86b5e2

View File

@ -3247,7 +3247,7 @@ fn main() { println!("hello {}", world::explore()); }
Now compile and run like this (adjust to your platform if necessary):
~~~~console
$ rustc --crate-type=lib world.rs # compiles libworld-<HASH>-0.42.so
$ rustc --crate-type=lib world.rs # compiles libworld-<HASH>-0.42.rlib
$ rustc main.rs -L . # compiles main
$ ./main
"hello world"