Skip to content

Commit

Permalink
Show example case
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Dec 10, 2014
1 parent 0fdf5a2 commit 574346b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions style/samples/Swift.swift
Expand Up @@ -33,6 +33,13 @@ if let definitely = maybe {
println("This is \(definitely) here")
}

// If the API you are using has implicit unwrapping you should still use if-let
func someUnauditedAPI(thing: String!) {
if let string = thing {
println(string)
}
}

// Enums --------------------------------------------------------------

enum Response {
Expand Down

0 comments on commit 574346b

Please sign in to comment.