Skip to content

Commit

Permalink
Fixed typo in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NevinBR authored Nov 10, 2019
1 parent d065a84 commit ab19494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Real/Real.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension Real {
public static func root(_ x: Self, _ n: Int) -> Self {
guard x >= 0 || n % 2 != 0 else { return .nan }
// TODO: this implementation is not quite correct, because n may be
// rounded in conversion to Self. This only effects very extreme cases,
// rounded in conversion to Self. This only affects very extreme cases,
// so we'll leave it alone for now.
return Self(signOf: x, magnitudeOf: pow(x.magnitude, 1/Self(n)))
}
Expand Down

0 comments on commit ab19494

Please sign in to comment.