Program syntax error

if drop.config.environment == .production {
    ...
}
-------------------------------------------
if drop.environment == .production {
    ...
}
This commit is contained in:
泽熙 2016-10-03 18:36:54 +08:00 committed by GitHub
parent 57a0d198dc
commit 82f1c3071a
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ Creation of the `Droplet` normally happens in the `main.swift` file.
The `environment` property contains the current environment your application is running in. Usually development, testing, or production.
```swift
if drop.config.environment == .production {
if drop.environment == .production {
...
}
```