diff options
author | TheDmitry <TheDmitry@users.noreply.github.com> | 2015-01-22 18:34:03 +0300 |
---|---|---|
committer | TheDmitry <TheDmitry@users.noreply.github.com> | 2015-01-22 18:34:03 +0300 |
commit | ccb751c098cbefc4592734cf03e897adf0a1a0ed (patch) | |
tree | a2695abfd08253b545ad5a62f8e01e801cf959b3 /swift.html.markdown | |
parent | 206568a4b0b308596e2ca5f43d5dca3088f320d6 (diff) | |
parent | b4ecc1e760973efb70e842b5186220cf5dba4b51 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'swift.html.markdown')
-rw-r--r-- | swift.html.markdown | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/swift.html.markdown b/swift.html.markdown index 2fbbe544..c6d2a8af 100644 --- a/swift.html.markdown +++ b/swift.html.markdown @@ -445,7 +445,10 @@ class MyShape: Rect { func grow() { sideLength += 2 - + + // Place a question mark after an optional property, method, or + // subscript to gracefully ignore a nil value and return nil + // instead of throwing a runtime error ("optional chaining"). if let allow = self.delegate?.canReshape?() { // test for delegate then for method self.delegate?.reshaped?() |