Skip to content

Commit d55f2a8

Browse files
committed
removed some explanations thats not quite right
1 parent f2a98ba commit d55f2a8

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/crates/using_lib.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ of its items will then be imported under a module named the same as the library.
55
This module generally behaves the same way as any other module.
66

77
```rust,ignore
8-
use rary;
8+
// extern crate rary; // May be required for Rust 2015 edition or earlier
99
1010
fn main() {
1111
rary::public_function();
@@ -25,14 +25,3 @@ called rary's `public_function()`
2525
called rary's `indirect_access()`, that
2626
> called rary's `private_function()`
2727
```
28-
29-
## `extern crate`
30-
31-
In rare cases, an explicit `extern crate` declaration is also required for older
32-
Rust editions (2015 or earlier). It may also be required for certain libraries
33-
such as `proc_macro` or `test` (which are shipped with `rustc`).
34-
```rust,ignore
35-
extern crate rary;
36-
use rary::public_function;
37-
// ...
38-
```

0 commit comments

Comments
 (0)