From 36847dab9176358ecbd6ada95d3a9cd1214ebd12 Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Sun, 25 Aug 2019 15:16:58 +0200 Subject: [PATCH] Fix: typo --- content/post/03-bites-the-rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/post/03-bites-the-rust.md b/content/post/03-bites-the-rust.md index 96490d2..39af7fc 100644 --- a/content/post/03-bites-the-rust.md +++ b/content/post/03-bites-the-rust.md @@ -546,7 +546,7 @@ fn main() { {{< / highlight >}} Here, this piece of code works because _Rust_ copy the value of `i` into -`val` when calling the `priprint` function. All primitve type in _Rust_ +`val` when calling the `priprint` function. All primitive types in _Rust_ works this way, but, if you want to pass, for example, a struct, _Rust_ will **move** the resource to the function. By **moving** a resource, you **transfer** ownership to the receiver. So in the example below `priprint`