Fix acessing app.storage example (#444)

This commit is contained in:
Tanner 2020-03-04 13:21:43 -05:00 committed by GitHub
parent ea34f32685
commit c5ec79d78a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -308,8 +308,8 @@ Accessing `app.storage` can be wrapped in a settable computed property to create
```swift
extension Application {
var myNumber: Int? {
get { app.storage[MyNumber.self] }
set { app.storage[MyNumber.self] = newValue }
get { self.storage[MyNumber.self] }
set { self.storage[MyNumber.self] = newValue }
}
}