Skip to content

Commit

Permalink
Remove misleading comment about .zero.
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
amartini51 committed Feb 17, 2021
1 parent cc708f8 commit 0b9ae84
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions stdlib/public/core/Integers.swift
Expand Up @@ -58,9 +58,7 @@ extension ExpressibleByIntegerLiteral
/// =============================================
///
/// To add `AdditiveArithmetic` protocol conformance to your own custom type,
/// implement the required operators, and provide a static `zero` property
/// using a type that can represent the magnitude of any value of your custom
/// type.
/// implement the required operators, and provide a static `zero` property.
public protocol AdditiveArithmetic: Equatable {
/// The zero value.
///
Expand Down

0 comments on commit 0b9ae84

Please sign in to comment.