diff --git a/fluent/model.md b/fluent/model.md index e51880d9..62e4e4c6 100644 --- a/fluent/model.md +++ b/fluent/model.md @@ -72,7 +72,7 @@ Now that we have covered initializing the model, we need to show it how to save ```swift final class User: Model { - func makeNode() throws -> Node { + func makeNode(context: Context) throws -> Node { return try Node(node: [ "id": id, "name": name diff --git a/guide/droplet.md b/guide/droplet.md index 9ca872b0..4c15349e 100644 --- a/guide/droplet.md +++ b/guide/droplet.md @@ -17,7 +17,7 @@ let drop = Droplet() // your magic here -drop.start() +drop.run() ``` Creation of the `Droplet` normally happens in the `main.swift` file.