Skip to content

Commit 96e6feb

Browse files
committed
fix: remove duplicated postfix operator
1 parent 9c0822f commit 96e6feb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Sources/Swift/Percent.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public struct FPercent {
2424
}
2525

2626
postfix operator %
27+
2728
public postfix func % (v: CGFloat) -> FPercent {
2829
return FPercent(value: v)
2930
}

Sources/Swift/YGLayoutExtensions.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import CoreGraphics
1111
import FlexLayoutYoga
1212
#endif
1313

14-
postfix operator %
15-
1614
extension Int {
1715
public static postfix func %(value: Int) -> YGValue {
1816
return YGValue(value: Float(value), unit: .percent)

0 commit comments

Comments
 (0)