-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Measurement +=, -=, *=, /= #1162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Measurement +=, -=, *=, /= #1162
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1162 +/- ##
==========================================
+ Coverage 95.87% 95.89% +0.01%
==========================================
Files 107 107
Lines 3951 3967 +16
==========================================
+ Hits 3788 3804 +16
Misses 163 163
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful
Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
Co-authored-by: Guy Kogus <guy.kogus@gmail.com>
/// - Parameters: | ||
/// - lhs: The first value to add. | ||
/// - rhs: The second value to add. | ||
static func += (lhs: inout Measurement<UnitType>, rhs: Measurement<UnitType>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't <UnitType>
assumed? If so, remove for all functions.
static func += (lhs: inout Measurement<UnitType>, rhs: Measurement<UnitType>) { | |
static func += (lhs: inout Measurement, rhs: Measurement) { |
🚀
Hello.
Thank you for SwifterSwift.
Checklist
@available
if not.