Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/linq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -172,6 +173,7 @@ fn main() {
let mut sum = 0;

for value in values {
println!("value = {:?}", value);
sum += value.0;
}

Expand Down