Skip to content

Commit f4cb4b5

Browse files
Update reference from Rustonomicon to Rust Reference
The exercise refers to the "Data layout" section of the Rustonomicon, but now that section claims itself deprecated and redirects to the "Type layout" section of The Rust Reference.
1 parent c437f75 commit f4cb4b5

File tree

1 file changed

+2
-2
lines changed
  • exercises/03_ticket_v1/09_heap/src

1 file changed

+2
-2
lines changed

exercises/03_ticket_v1/09_heap/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ mod tests {
2121
// This is a tricky question!
2222
// The "intuitive" answer happens to be the correct answer this time,
2323
// but, in general, the memory layout of structs is a more complex topic.
24-
// If you're curious, check out the "Data layout" section of the Rustonomicon
25-
// https://doc.rust-lang.org/nomicon/data.html for more information.
24+
// If you're curious, check out the "Type layout" section of The Rust Reference
25+
// https://doc.rust-lang.org/reference/type-layout.html for more information.
2626
assert_eq!(size_of::<Ticket>(), todo!());
2727
}
2828
}

0 commit comments

Comments
 (0)