From bc32a4e74aa950d3bebf0928d8e7f8b49bdb57c1 Mon Sep 17 00:00:00 2001 From: leesper Date: Sat, 9 Apr 2016 16:32:44 +0800 Subject: [PATCH] fix typo --- src/part05.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/part05.rs b/src/part05.rs index 784440c..8a2cd90 100644 --- a/src/part05.rs +++ b/src/part05.rs @@ -124,7 +124,7 @@ enum Variant { Text(String), } //@ Now consider the following piece of code. Like above, `n` will be a reference to a part of `var`, -//@ and since we wrote `ref mut`, the reference will be uniqie and mutable. In other words, right after the match, `ptr` +//@ and since we wrote `ref mut`, the reference will be unique and mutable. In other words, right after the match, `ptr` //@ points to the number that's stored in `var`, where `var` is a `Number`. Remember that `_` means //@ "we don't care". fn work_on_variant(mut var: Variant, text: String) { -- 2.30.2