-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Description
Hi, here in Chapter 5.2 I read that the dbg! macro takes ownership instead of taking reference
and its use is dbg!(&rect1).
However, this seems in contrast with what I read in Chapter 4.2, that for example the function calculate_length takes a reference instead of taking ownership (calculate_length(&s1)).
Am I misunderstanding how dbg! works or it is also taking a reference (and println! takes ownership instead)?
Metadata
Metadata
Assignees
Labels
No labels