diff options
author | Damian Rzeszot <damian.rzeszot@gmail.com> | 2017-10-09 12:02:29 +0200 |
---|---|---|
committer | Damian Rzeszot <damian.rzeszot@gmail.com> | 2017-10-09 08:04:01 +0200 |
commit | 9a9e52b54bf9bc6ebeefc996452f5944a234557f (patch) | |
tree | 30916f02c2efb69ce374cd8aa8de863b7613260b /zh-cn | |
parent | d01e5242e16c522becc1b04f9692d2556f94c4f1 (diff) |
swift | fix style guidelines
Diffstat (limited to 'zh-cn')
-rw-r--r-- | zh-cn/swift-cn.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zh-cn/swift-cn.html.markdown b/zh-cn/swift-cn.html.markdown index 7ebf8121..002b117f 100644 --- a/zh-cn/swift-cn.html.markdown +++ b/zh-cn/swift-cn.html.markdown @@ -461,10 +461,10 @@ var suitValue: Suit = .hearts // 非整型的枚举类型需要在定义时赋值 enum BookName: String { - case John = "John" - case Luke = "Luke" + case john = "John" + case luke = "Luke" } -print("Name: \(BookName.John.rawValue)") +print("Name: \(BookName.john.rawValue)") // 与特定数据类型关联的枚举 enum Furniture { |