Files
freeCodeCamp/guide/chinese/swift/comments/index.md
Shane 0306b36e52 replace with 备注 and 结尾 (#21167)
it's easier to understand and make sense.
2018-12-23 21:51:15 -08:00

547 B
Raw Blame History

title, localeTitle
title localeTitle
Comments 注释

注释

注释允许您备注您的代码。 Swift编译器忽略注释仅对阅读代码库的人有用。

单行注释以两个正斜杠//开头。

例:

    // Hello, single-line comment! 

多行注释以正斜杠开头,后跟星号/* ,以星号后跟正斜杠做结尾*/

例:

   /* Hello, 
   multiline-line comment! */ 

更多信息: