diff options
author | Damian Rzeszot <damian.rzeszot@gmail.com> | 2017-10-09 12:01:15 +0200 |
---|---|---|
committer | Damian Rzeszot <damian.rzeszot@gmail.com> | 2017-10-09 08:04:01 +0200 |
commit | d01e5242e16c522becc1b04f9692d2556f94c4f1 (patch) | |
tree | 34cd07098fca315991ef660aa874317b7322b112 /es-es/swift-es.html.markdown | |
parent | 62d4b1483b850da0a99c2aa6c2da8b013e308f50 (diff) |
swift | fix style guidelines
Diffstat (limited to 'es-es/swift-es.html.markdown')
-rw-r--r-- | es-es/swift-es.html.markdown | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/es-es/swift-es.html.markdown b/es-es/swift-es.html.markdown index 8f63517a..ea892628 100644 --- a/es-es/swift-es.html.markdown +++ b/es-es/swift-es.html.markdown @@ -446,20 +446,20 @@ if let circle = myEmptyCircle { // Al igual que las clases, pueden contener métodos 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 "♧" } } } // Los valores de enum permite la sintaxis corta, sin necesidad de poner // el tipo del enum cuando la variable es declarada de manera explícita -var suitValue: Suit = .Hearts +var suitValue: Suit = .hearts // Enums de tipo no-entero requiere asignaciones de valores crudas directas enum BookName: String { |