Skip to content

Commit 0b9ae84

Browse files
committed
Remove misleading comment about .zero.
There's nothing useful to say about the type of .zero -- it's constrained by the protocol to Self, so you don't have any choice what it is when conforming to AdditiveArithmetic. Fixes <rdar://problem/72592923> (SR-13983).
1 parent cc708f8 commit 0b9ae84

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ extension ExpressibleByIntegerLiteral
5858
/// =============================================
5959
///
6060
/// To add `AdditiveArithmetic` protocol conformance to your own custom type,
61-
/// implement the required operators, and provide a static `zero` property
62-
/// using a type that can represent the magnitude of any value of your custom
63-
/// type.
61+
/// implement the required operators, and provide a static `zero` property.
6462
public protocol AdditiveArithmetic: Equatable {
6563
/// The zero value.
6664
///

0 commit comments

Comments
 (0)