From fac8d0c157dba9685c5ab143098b71c6a2097cf4 Mon Sep 17 00:00:00 2001 From: FrankTung Date: Thu, 23 Feb 2017 19:31:24 +0800 Subject: [PATCH] fix a bullet point about reference types --- en/02.3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/02.3.md b/en/02.3.md index 5fd21659..52b711c4 100644 --- a/en/02.3.md +++ b/en/02.3.md @@ -327,7 +327,7 @@ Now we can change the value of `x` in the functions. Why do we use pointers? Wha - Allows us to use more functions to operate on one variable. - Low cost by passing memory addresses (8 bytes), copy is not an efficient way, both in terms of time and space, to pass variables. -- `string`, `slice` and `map` are reference types, so they use pointers when passing to functions by default. (Attention: If you need to change the length of `slice`, you have to pass pointers explicitly) +- `Channel`, `slice` and `map` are reference types, so they use pointers when passing to functions by default. (Attention: If you need to change the length of `slice`, you have to pass pointers explicitly) ### defer