Skip to content

Commit 783a0ef

Browse files
committed
Update bodyError
1 parent bfaf971 commit 783a0ef

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/OpenSwiftUI/Core/Modifier/SceneModifier/TODO/_SceneModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ extension _SceneModifier {
2222
extension _SceneModifier where Body == Never {
2323
@inline(__always)
2424
public func body(content _: SceneContent) -> Body {
25-
preconditionFailure("body() should not be called on \(Self.self)")
25+
preconditionFailure("body() should not be called on \(Self.self).")
2626
}
2727
}

Sources/OpenSwiftUI/Scene/Core/Scene.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ extension Never: Scene {}
1616

1717
extension Scene {
1818
func sceneBodyError() -> Never {
19-
preconditionFailure("body() should not be called on \(Self.self)")
19+
preconditionFailure("body() should not be called on \(Self.self).")
2020
}
2121
}

Sources/OpenSwiftUICore/Modifier/ViewModifier/ViewModifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extension ViewModifier where Self: _GraphInputsModifier, Body == Never {
137137

138138
extension ViewModifier {
139139
func bodyError() -> Never {
140-
preconditionFailure("body() should not be called on \(Self.self)")
140+
preconditionFailure("body() should not be called on \(Self.self).")
141141
}
142142
}
143143

Sources/OpenSwiftUICore/View/View.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ extension PrimitiveView {
106106

107107
extension View {
108108
package func bodyError() -> Never {
109-
preconditionFailure("body() should not be called on \(Self.self)")
109+
preconditionFailure("body() should not be called on \(Self.self).")
110110
}
111111
}
112112

0 commit comments

Comments
 (0)