mirror of https://github.com/vapor/docs.git
Program syntax error
if drop.config.environment == .production {
...
}
-------------------------------------------
if drop.environment == .production {
...
}
This commit is contained in:
parent
57a0d198dc
commit
82f1c3071a
|
|
@ -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 {
|
||||
...
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue