From eb46168d6c308e3760d9daa048ec85e69681544a Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 24 Oct 2012 14:22:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2.2.md b/2.2.md index 10adda99..d82c9405 100644 --- a/2.2.md +++ b/2.2.md @@ -114,7 +114,7 @@ Go对于已声明但未使用的变量会在编译阶段报错,比如下面的 这就是全部吗?No!Go还支持复数。它的默认类型是`complex128`(64位实数+64位虚数)。如果需要小一些的,也有`complex64`(32位实数+32位虚数)。复数的形式为`re + imi`,其中`re`是实数部分,`im`是虚数部分,而最后的`i`是虚数单位。下面是一个使用复数的例子: - var c complex64 = 5+5i; + var c complex64 = 5+5i fmt.Printf("Value is: %v", c)