mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 20:24:32 -06:00
Fix chapter reference
This commit is contained in:
@@ -261,8 +261,9 @@ copying can be assumed to be inexpensive.
|
|||||||
|
|
||||||
But what if we _do_ want to deeply copy the `String`’s data and not just the
|
But what if we _do_ want to deeply copy the `String`’s data and not just the
|
||||||
`String` itself? There’s a common method for that: `clone()`. We will discuss
|
`String` itself? There’s a common method for that: `clone()`. We will discuss
|
||||||
methods in the section on [`structs`], but they’re a common enough feature
|
methods in the section on [`structs` in Chapter XX], but they’re a common
|
||||||
in many programming languages that you have probably seen them before.
|
enough feature in many programming languages that you have probably seen them
|
||||||
|
before.
|
||||||
|
|
||||||
Here’s an example of the `clone()` method in action:
|
Here’s an example of the `clone()` method in action:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user