From 3929c3711e5bddd59682578b601cc22c5b0c65c5 Mon Sep 17 00:00:00 2001 From: Mojtaba Goodarzi <75073500+mojbaba@users.noreply.github.com> Date: Wed, 3 Apr 2024 04:11:57 +0330 Subject: [PATCH] Change rust code to match the print output --- src/linq/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/linq/index.md b/src/linq/index.md index 7196515..b3d04fe 100644 --- a/src/linq/index.md +++ b/src/linq/index.md @@ -159,6 +159,7 @@ array instead of a vector. Consider just the summing loop from the above example over an array of a structure that wraps an integer: ```rust +#[derive(Debug)] struct Int(i32); impl Drop for Int { @@ -172,6 +173,7 @@ fn main() { let mut sum = 0; for value in values { + println!("value = {:?}", value); sum += value.0; }