From 0471eb6c16fcfdea87f4767a1a830c9d411d3be7 Mon Sep 17 00:00:00 2001 From: isaoeka Date: Sun, 27 Nov 2016 23:30:56 +0900 Subject: [PATCH] Fix the position of try In addition, correction of missing designation https://github.com/vapor/mysql-provider/blob/master/Sources/VaporMySQL/Provider.swift#L61-L75 --- guide/provider.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/provider.md b/guide/provider.md index 506e83ac..db8bfd18 100644 --- a/guide/provider.md +++ b/guide/provider.md @@ -74,8 +74,8 @@ import VaporMySQL let drop = Droplet() -let mysql = VaporMySQL.Provider(host: "localhost", user: "root") -try drop.addProvider(mysql) +let mysql = try VaporMySQL.Provider(host: "localhost", user: "root", password: "", database: "vapor") +drop.addProvider(mysql) ...