mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Suggested changes
This commit is contained in:
parent
ad16a31c07
commit
b4860de42f
@ -82,9 +82,9 @@ if someOptionalString != nil {
|
|||||||
someOptionalString = nil
|
someOptionalString = nil
|
||||||
|
|
||||||
/*
|
/*
|
||||||
To get the underlying type from an optional, you unwrap it using the
|
Trying to use ! to access a non-existent optional value triggers a runtime
|
||||||
force unwrap operator (!). Only use the unwrap operator if you're sure
|
error. Always make sure that an optional contains a non-nil value before
|
||||||
the underlying value isn't nil.
|
using ! to force-unwrap its value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// implicitly unwrapped optional
|
// implicitly unwrapped optional
|
||||||
|
Loading…
Reference in New Issue
Block a user