diff --git a/2.0/docs/getting-started/xcode.md b/2.0/docs/getting-started/xcode.md
index 82b6197a..c26dad71 100644
--- a/2.0/docs/getting-started/xcode.md
+++ b/2.0/docs/getting-started/xcode.md
@@ -8,12 +8,6 @@ You can build, run, and stop your server from within Xcode, as well as use break
To use Xcode, you will first need to generate a `*.xcodeproj` file.
-### Select 'Run'
-
-Make sure after generating your Xcode project that you properly select the executable if you're trying to run your application.
-
-
-
## Generate Project
### Vapor Toolbox
@@ -27,6 +21,12 @@ vapor xcode
!!! tip
If you'd like to automatically open the Xcode project, use `vapor xcode -y`
+### Select 'Run'
+
+Make sure after generating your Xcode project that you properly select the executable if you're trying to run your application.
+
+
+
### Manual
To generate a new Xcode project manually.
diff --git a/2.0/docs/vapor/droplet.md b/2.0/docs/vapor/droplet.md
index 4c6697dc..4cd498fd 100644
--- a/2.0/docs/vapor/droplet.md
+++ b/2.0/docs/vapor/droplet.md
@@ -120,7 +120,13 @@ Let's create a custom logger to demonstrate Vapor's configurable properties.
final class AllCapsLogger: LogProtocol {
var enabled: [LogLevel] = []
func log(_ level: LogLevel, message: String, file: String, function: String, line: Int) {
- print(message.uppercased + "!!!")
+ print(message.uppercased() + "!!!")
+ }
+}
+
+extension AllCapsLogger: ConfigInitializable {
+ convenience init(config: Config) throws {
+ self.init()
}
}
```
@@ -130,7 +136,7 @@ Now add the logger to the Droplet using the `addConfigurable` method for logs.
`main.swift`
```swift
let config = try Config()
-config.addConfigurable(log: AllCapsLogger(), name: "all-caps")
+config.addConfigurable(log: AllCapsLogger.init, name: "all-caps")
let drop = try Droplet(config)
@@ -166,12 +172,12 @@ final class AllCapsLogger: LogProtocol {
}
func log(_ level: LogLevel, message: String, file: String, function: String, line: Int) {
- print(message.uppercased + String(repeating: "!", count: exclamationCount))
+ print(message.uppercased() + String(repeating: "!", count: exclamationCount))
}
}
extension AllCapsLogger: ConfigInitializable {
- init(config: Config) throws {
+ convenience init(config: Config) throws {
let count = config["allCaps", "exclamationCount"]?.int ?? 3
self.init(exclamationCount: count)
}
@@ -187,7 +193,7 @@ Now that we have conformed our logger to `ConfigInitializable`, we can pass just
`main.swift`
```swift
let config = try Config()
-config.addConfigurable(log: AllCapsLogger.self, name: "all-caps")
+config.addConfigurable(log: AllCapsLogger.init, name: "all-caps")
let drop = try Droplet(config)