Skip to content

Commit 7ca801c

Browse files
committed
Add clarity to name of file being used in library example.
1 parent ba84bf3 commit 7ca801c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/crates/lib.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Let's create a library, and then see how to link it to another crate.
44

5+
In `rary.rs`:
6+
57
```rust,ignore
68
pub fn public_function() {
79
println!("called rary's `public_function()`");
@@ -29,4 +31,4 @@ crate file, but this default name can be overridden by passing
2931
the `--crate-name` option to `rustc` or by using the [`crate_name`
3032
attribute][crate-name].
3133

32-
[crate-name]: ../attribute/crate.md
34+
[crate-name]: ../attribute/crate.md

0 commit comments

Comments
 (0)