Merge pull request #178 from vapor/correct-manual-view-docs

Update manual section.
This commit is contained in:
Tanner 2017-06-02 16:42:59 +01:00 committed by GitHub
commit 5b7786c128
1 changed files with 2 additions and 3 deletions

View File

@ -43,9 +43,8 @@ You can also set the `drop.view` property manually if you want to hardcode your
import Vapor
import LeafProvider
let drop = try Droplet()
drop.view = LeafRenderer(viewsDir: drop.viewsDir)
let view = LeafRenderer(viewsDir: drop.viewsDir)
let drop = try Droplet(view: view)
```
## Done