---
title: "Comment by Kobi Cohen-arazi on \"Why you should code in Rust in 2021\" | Hashnode"
description: "one mistake in the 2nd accumulate code - it consume it, move it, so not reference."
url: "https://hashnode.com/posts/why-you-should-code-in-rust-in-2021/6092af73d1bbc47b91a6546c/comment/609440e4a7a3827bb64ce708"
---

[Discussion](https://hashnode.com/posts/why-you-should-code-in-rust-in-2021/6092af73d1bbc47b91a6546c)

Comment [Why you should code in Rust in 2021](https://hashnode.com/posts/why-you-should-code-in-rust-in-2021/6092af73d1bbc47b91a6546c)

[Kobi Cohen-arazi](https://hashnode.com/@Kobica)

[May 6, 2021](https://hashnode.com/posts/why-you-should-code-in-rust-in-2021/6092af73d1bbc47b91a6546c/comment/609440e4a7a3827bb64ce708)

one mistake in the 2nd accumulate code - it consume it, move it, so not reference.

[Romaric Philogène](https://hashnode.com/@rophilogene)

[May 6, 2021](https://hashnode.com/posts/why-you-should-code-in-rust-in-2021/6092af73d1bbc47b91a6546c/comment/609440e4a7a3827bb64ce708#reply-609443e0a7a3827bb64ce72f)

That's true, thank you - it's corrected :)
