Skip to content

Commit 948e70e

Browse files
authored
Fix two issues in Usage.md (#2908)
- path to main.swift was wrong - tools-version was missing from Package.swift snippet
1 parent 8392988 commit 948e70e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/Usage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ builds an executable:
129129
$ cd example
130130
example$ swift package init --type executable
131131

132-
Edit the `Sources/main.swift` so it consists of this code:
132+
Edit the `Sources/example/main.swift` so it consists of this code:
133133

134134
```swift
135135
import Clibgit
@@ -163,6 +163,8 @@ This creates `Package.swift` and `module.modulemap` files in the directory.
163163
Edit `Package.swift` and add `pkgConfig` parameter:
164164

165165
```swift
166+
// swift-tools-version:5.3
167+
166168
import PackageDescription
167169

168170
let package = Package(

0 commit comments

Comments
 (0)