From ab2f0298f0a3ae5437e1885b69fede53dbf1c610 Mon Sep 17 00:00:00 2001 From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Tue, 14 May 2024 10:56:14 +0200 Subject: [PATCH] Link to Rustonomicon for struct's data layout. --- exercises/03_ticket_v1/09_heap/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exercises/03_ticket_v1/09_heap/src/lib.rs b/exercises/03_ticket_v1/09_heap/src/lib.rs index 3887a70..24d0c6e 100644 --- a/exercises/03_ticket_v1/09_heap/src/lib.rs +++ b/exercises/03_ticket_v1/09_heap/src/lib.rs @@ -20,8 +20,9 @@ mod tests { fn ticket_size() { // This is a tricky question! // The "intuitive" answer happens to be the correct answer this time, - // but we'll circle back to struct memory layouts later in the course. - // There's a lot more to it than meets the eye—padding, alignment, etc. + // but, in general, the memory layout of structs is a more complex topic. + // If you're curious, check out the "Data layout" section of the Rustonomicon + // https://doc.rust-lang.org/nomicon/data.html for more information. assert_eq!(size_of::(), todo!()); } } -- 2.45.2