Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit fd5a98d

Browse files
committed
Update README.md
Remove uses of NSObject
1 parent 9396a39 commit fd5a98d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

swift/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let regex = NSRegularExpression(pattern: "[a-z]", options: NSRegularExpressionOp
2323

2424
init() example:
2525
```swift
26-
class Component: NSObject {
26+
class Component {
2727
var controller: CustomViewController! // We want to use it as a non-optional but have to initialize after super.init()
2828

2929
init() {
@@ -48,7 +48,7 @@ We typically use an enumeration type:
4848

4949
```swift
5050
public enum ParseResult {
51-
case Result(NSObject)
51+
case Result(AST)
5252
case Error(String)
5353
}
5454
```

0 commit comments

Comments
 (0)