summaryrefslogtreecommitdiffhomepage
path: root/swift.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'swift.html.markdown')
-rw-r--r--swift.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index 577fa559..a3b33e25 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -536,10 +536,10 @@ var suitValue: Suit = .hearts
// String enums can have direct raw value assignments
// or their raw values will be derived from the Enum field
enum BookName: String {
- case John
- case Luke = "Luke"
+ case john
+ case luke = "Luke"
}
-print("Name: \(BookName.John.rawValue)")
+print("Name: \(BookName.john.rawValue)")
// Enum with associated Values
enum Furniture {