From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Tue, 14 May 2024 08:56:14 +0000 (+0200) Subject: Link to Rustonomicon for struct's data layout. X-Git-Url: http://git.euphorik.ch/?a=commitdiff_plain;h=ab2f0298f0a3ae5437e1885b69fede53dbf1c610;p=rust_exercises.git Link to Rustonomicon for struct's data layout. --- 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!()); } }