diff --git a/solutions/compound-types/slice.md b/solutions/compound-types/slice.md index 6825779..32e84cb 100644 --- a/solutions/compound-types/slice.md +++ b/solutions/compound-types/slice.md @@ -17,7 +17,7 @@ fn main() { let slice = &arr[..2]; - // TIPS: slice( reference ) IS NOT an array, if it is an array, then `assert!` will passed: each of the two UTF-8 chars '中' and '国' occupies 4 bytes, 2 * 4 = 8 + // TIPS: slice( reference ) IS NOT an array, because if it is, then `assert!` will passed: each of the two UTF-8 chars '中' and '国' occupies 4 bytes, 2 * 4 = 8 assert!(std::mem::size_of_val(&slice) == 16); } ```