Skip to content

Commit

Permalink
Make it clear that Foundation has to be imported (apple#246)
Browse files Browse the repository at this point in the history
It's not from the get-go clear for beginners that Foundation has to be imported as well. Otherwise, you would end up with a bunch of compilation errors.
  • Loading branch information
johannes-codes authored Oct 6, 2020
1 parent 3cc9044 commit d424bca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/01 Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ OPTIONS:
As promised, here's the complete `count` command, for your experimentation:

```swift
import ArgumentParser
import Foundation

struct Count: ParsableCommand {
static let configuration = CommandConfiguration(abstract: "Word counter.")

Expand Down

0 comments on commit d424bca

Please sign in to comment.