summaryrefslogtreecommitdiffhomepage
path: root/swift.html.markdown
diff options
context:
space:
mode:
authorDamian Rzeszot <damian.rzeszot@gmail.com>2017-10-09 12:01:15 +0200
committerDamian Rzeszot <damian.rzeszot@gmail.com>2017-10-09 08:04:01 +0200
commitd01e5242e16c522becc1b04f9692d2556f94c4f1 (patch)
tree34cd07098fca315991ef660aa874317b7322b112 /swift.html.markdown
parent62d4b1483b850da0a99c2aa6c2da8b013e308f50 (diff)
swift | fix style guidelines
Diffstat (limited to 'swift.html.markdown')
-rw-r--r--swift.html.markdown12
1 files changed, 6 insertions, 6 deletions
diff --git a/swift.html.markdown b/swift.html.markdown
index 46388ca5..577fa559 100644
--- a/swift.html.markdown
+++ b/swift.html.markdown
@@ -518,20 +518,20 @@ if let circle = myEmptyCircle {
// They can contain methods like classes.
enum Suit {
- case Spades, Hearts, Diamonds, Clubs
+ case spades, hearts, diamonds, clubs
func getIcon() -> String {
switch self {
- case .Spades: return "♤"
- case .Hearts: return "♡"
- case .Diamonds: return "♢"
- case .Clubs: return "♧"
+ case .spades: return "♤"
+ case .hearts: return "♡"
+ case .diamonds: return "♢"
+ case .clubs: return "♧"
}
}
}
// Enum values allow short hand syntax, no need to type the enum type
// when the variable is explicitly declared
-var suitValue: Suit = .Hearts
+var suitValue: Suit = .hearts
// String enums can have direct raw value assignments
// or their raw values will be derived from the Enum field