You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ch07-04-bringing-paths-into-scope-with-the-use-keyword.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
## Bringing Paths into Scope with the `use` Keyword
2
2
3
3
Having to write out the paths to call functions can feel inconvenient and
4
-
repetitive. In [Listing 7-7](#listing-7-7), whether we chose the absolute or relative path to
4
+
repetitive. In [Listing 7-7](ch07-03-paths-for-referring-to-an-item-in-the-module-tree.md#listing-7-7), whether we chose the absolute or relative path to
5
5
the `add_to_waitlist` function, every time we wanted to call `add_to_waitlist`
6
6
we had to specify `front_of_house` and `hosting` too. Fortunately, there’s a
7
7
way to simplify this process: we can create a shortcut to a path with the `use`
@@ -221,7 +221,7 @@ crate.
221
221
222
222
If we’re using multiple items defined in the same crate or same module, listing
223
223
each item on its own line can take up a lot of vertical space in our files. For
224
-
example, these two `use` statements we had in the guessing game in [Listing 2-4](#listing-2-4)
224
+
example, these two `use` statements we had in the guessing game in [Listing 2-4](ch02-00-guessing-game-tutorial.md#listing-2-4)
Copy file name to clipboardExpand all lines: src/ch10-03-lifetime-syntax.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -391,10 +391,10 @@ the `ImportantExcerpt` goes out of scope, so the reference in the
391
391
392
392
You’ve learned that every reference has a lifetime and that you need to specify
393
393
lifetime parameters for functions or structs that use references. However, we
394
-
had a function in [Listing 4-9](#listing-4-9), shown again in [Listing 10-25](#listing-10-25), that compiled
394
+
had a function in [Listing 4-9](ch04-03-slices.md#listing-4-9), shown again in [Listing 10-25](#listing-10-25), that compiled
395
395
without lifetime annotations.
396
396
397
-
<Listingnumber="10-25"file-name="src/lib.rs"caption="A function we defined in [Listing 4-9](#listing-4-9) that compiled without lifetime annotations, even though the parameter and return type are references">
397
+
<Listingnumber="10-25"file-name="src/lib.rs"caption="A function we defined in [Listing 4-9](ch04-03-slices.md#listing-4-9) that compiled without lifetime annotations, even though the parameter and return type are references">
0 commit comments