From f7c62fc93f1d0b2a9d96119413bdfcdaad3a9b93 Mon Sep 17 00:00:00 2001 From: Boris Egorov Date: Thu, 14 Jan 2016 10:53:34 +0600 Subject: [PATCH] variable-bindings: Specify example language --- nostarch/chapter3.md | 2 +- src/variable-bindings.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nostarch/chapter3.md b/nostarch/chapter3.md index 4f15f172c..ffb75fe09 100644 --- a/nostarch/chapter3.md +++ b/nostarch/chapter3.md @@ -538,7 +538,7 @@ know that the compiler will let us know if we try to modify it later. Let’s assume that after we calculate `12`, we don’t want to modify `x` again. If we had written this program in a mutable style, like this: -``` +```rust fn main() { let mut x = 5; x = x + 1; diff --git a/src/variable-bindings.md b/src/variable-bindings.md index d3aacd640..b3f0de697 100644 --- a/src/variable-bindings.md +++ b/src/variable-bindings.md @@ -527,7 +527,7 @@ know that the compiler will let us know if we try to modify it later. Let’s assume that after we calculate `12`, we don’t want to modify `x` again. If we had written this program in a mutable style, like this: -``` +```rust fn main() { let mut x = 5; x = x + 1;