Skip to content

Commit

Permalink
Merge pull request #142 from aksh1618/patch-1
Browse files Browse the repository at this point in the history
Fix broken link to Copying vs. Moving Out of a Collection in ch05-01
  • Loading branch information
willcrichton authored Jan 7, 2024
2 parents ff61a87 + b7cb284 commit 9ab5030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch05-01-defining-structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ longer use `user1` after creating `user2` because the `String` in the
`active` and `sign_in_count` values from `user1`, then `user1` would still be
valid after creating `user2`. The types of `active` and `sign_in_count` are
types that implement the `Copy` trait, so the behavior we discussed in the
[“Copying vs. Moving Out of a Vector][copy]<!-- ignore --> section would apply.
[“Copying vs. Moving Out of a Collection][copy]<!-- ignore --> section would apply.

### Using Tuple Structs Without Named Fields to Create Different Types

Expand Down Expand Up @@ -398,5 +398,5 @@ add `> ` before every line -->

[tuples]: ch03-02-data-types.html#the-tuple-type
[move]: ch04-01-what-is-ownership.html
[copy]: ch04-03-fixing-ownership-errors.html#fixing-an-unsafe-program-copying-vs-moving-out-of-a-vector
[copy]: ch04-03-fixing-ownership-errors.html#fixing-an-unsafe-program-copying-vs-moving-out-of-a-collection
[differentfields]: ch04-03-fixing-ownership-errors.html#fixing-a-safe-program-mutating-different-tuple-fields

0 comments on commit 9ab5030

Please sign in to comment.