Skip to content

Commit 55fa4b9

Browse files
committed
We should be consistent with “data race” vs “data-race” and “data race” is correct.
1 parent b7562cc commit 55fa4b9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Sources/App/Views/ReadyForSwift6/ReadyForSwift6Show+View.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension ReadyForSwift6Show {
3838
override func content() -> Node<HTML.BodyContext> {
3939
.group(
4040
.h2("Ready for Swift 6"),
41-
.p("The Swift 6 language mode prevents data-races at compile time. When you opt into Swift 6 mode, the compiler will produce errors when your code has a risk of concurrent access, turning hard-to-debug runtime failures into compiler errors."),
41+
.p("The Swift 6 language mode prevents data races at compile time. When you opt into Swift 6 mode, the compiler will produce errors when your code has a risk of concurrent access, turning hard-to-debug runtime failures into compiler errors."),
4242
.p("To track the progress of the Swift package ecosystem, the Swift Package Index is running regular package compatibility checks across all packages in the index."),
4343
.p(
4444
.text("For help migrating your project's code, see the "),
@@ -50,16 +50,16 @@ extension ReadyForSwift6Show {
5050
),
5151
.h3(
5252
.id("total-zero-errors"),
53-
"Total packages with Swift 6 zero data-race safety errors"
53+
"Total packages with Swift 6 zero data race safety errors"
5454
),
55-
.p("This chart shows packages with zero data-race safety compiler diagnostics during a successful build on at least one tested platform."),
55+
.p("This chart shows packages with zero data race safety compiler diagnostics during a successful build on at least one tested platform."),
5656
model.readyForSwift6Chart(kind: .compatiblePackages, includeTotals: true),
5757
.h3(
5858
.id("total-errors"),
59-
"Total Swift 6 data-race safety errors"
59+
"Total Swift 6 data race safety errors"
6060
),
6161
.p(
62-
.text("This chart shows the total number of all data-race safety diagnostics across "),
62+
.text("This chart shows the total number of all data race safety diagnostics across "),
6363
.em("all"),
6464
.text(" packages.")
6565
),
@@ -74,7 +74,7 @@ extension ReadyForSwift6Show {
7474
),
7575
.p(
7676
.strong(.text("A: ")),
77-
.text("Swift 6 introduces complete concurrency checking, a compiler feature that checks your code for data-race safety. The number of data race safety errors reflects how many issues the compiler detected relating to these concurrency or data-race checks. The total errors chart plots the total number of these errors summed across all packages.")
77+
.text("Swift 6 introduces complete concurrency checking, a compiler feature that checks your code for data race safety. The number of data race safety errors reflects how many issues the compiler detected relating to these concurrency or data race checks. The total errors chart plots the total number of these errors summed across all packages.")
7878
),
7979
.hr(
8080
.class("minor")
@@ -98,11 +98,11 @@ extension ReadyForSwift6Show {
9898
),
9999
.p(
100100
.strong(.text("Q: ")),
101-
.text("Are packages that show zero data-race compiler diagnostics guaranteed to be safe from data-race errors?")
101+
.text("Are packages that show zero data race compiler diagnostics guaranteed to be safe from data race errors?")
102102
),
103103
.p(
104104
.strong(.text("A: ")),
105-
.text("No. We gather data on data-race safety from Swift compiler diagnostics with “complete” concurrency checks enabled. We can’t tell if the diagnostics produce zero errors due to a genuine lack of data-race safety errors or whether errors have been suppressed using techniques like "),
105+
.text("No. We gather data on data race safety from Swift compiler diagnostics with “complete” concurrency checks enabled. We can’t tell if the diagnostics produce zero errors due to a genuine lack of data race safety errors or whether errors have been suppressed using techniques like "),
106106
.code("@unchecked Sendable"),
107107
.text(".")
108108
),
@@ -119,7 +119,7 @@ extension ReadyForSwift6Show {
119119
),
120120
.p(
121121
.strong(.text("A: ")),
122-
.text("Data-race safety diagnostics are determined in different stages of the compiler. For example, type checking produces some data-race safety errors, and others are diagnosed during control-flow analysis after code generation. If type checking produces errors, the compiler will not proceed to code generation, so testing with "),
122+
.text("Data race safety diagnostics are determined in different stages of the compiler. For example, type checking produces some data race safety errors, and others are diagnosed during control-flow analysis after code generation. If type checking produces errors, the compiler will not proceed to code generation, so testing with "),
123123
.code("-swift-version 6"),
124124
.text(" would show fewer errors than really exist across the package ecosystem.")
125125
),

0 commit comments

Comments
 (0)