Skip to content

Commit acc944a

Browse files
committed
auto merge of #14970 : nkoep/rust/patch-1, r=huonw
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`.
2 parents feb294c + 7fec86b commit acc944a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3247,7 +3247,7 @@ fn main() { println!("hello {}", world::explore()); }
32473247
Now compile and run like this (adjust to your platform if necessary):
32483248

32493249
~~~~console
3250-
$ rustc --crate-type=lib world.rs # compiles libworld-<HASH>-0.42.so
3250+
$ rustc --crate-type=lib world.rs # compiles libworld-<HASH>-0.42.rlib
32513251
$ rustc main.rs -L . # compiles main
32523252
$ ./main
32533253
"hello world"

0 commit comments

Comments
 (0)