Skip to content

Commit 610dff8

Browse files
committed
Simplify availability of examples
1 parent 882c922 commit 610dff8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Examples/count-lines/CountLines.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ extension CountLines {
5757

5858
mutating func run() async throws {
5959
guard #available(macOS 12, *) else {
60-
print("This example isn't supported on this platform")
60+
print("'count-lines' isn't supported on this platform.")
6161
return
6262
}
6363

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var package = Package(
6767
]
6868
)
6969

70-
#if swift(>=5.6)
70+
#if swift(>=5.6) && os(macOS)
7171
package.targets.append(contentsOf: [
7272
.executableTarget(
7373
name: "count-lines",

Tools/changelog-authors/ChangelogAuthors.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ struct ChangelogAuthors: AsyncParsableCommand {
103103
print(references(for: authors))
104104
}
105105
}
106+
107+
#endif

0 commit comments

Comments
 (0)