소스 검색

Merge pull request #117 from jiedo/patch-6

单行注释中断换行错误
无闻 10 년 전
부모
커밋
94fca69ef6
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      eBook/10.1.md

+ 2 - 4
eBook/10.1.md

@@ -265,10 +265,8 @@ type nr number   // alias type
 func main() {
     a := number{5.0}
     b := nr{5.0}
-    // var i float32 = b   // compile-error: cannot use b (type nr) as type 
-    float32 in assignment
-    // var i = float32(b)  // compile-error: cannot convert b (type nr) to 
-    type float32
+    // var i float32 = b   // compile-error: cannot use b (type nr) as type float32 in assignment
+    // var i = float32(b)  // compile-error: cannot convert b (type nr) to type float32
     // var c number = b    // compile-error: cannot use b (type nr) as type number in assignment
     // needs a conversion:
     var c = number(b)