Skip to content

Commit

Permalink
Added more @discardableResult decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcruzeiro committed Aug 9, 2016
1 parent 9eaedde commit 3bda789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cartography/Priority.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ infix operator ~ { }
///
/// - returns: The same constraint with its priority updated.
///
public func ~ (lhs: NSLayoutConstraint, rhs: LayoutPriority) -> NSLayoutConstraint {
@discardableResult public func ~ (lhs: NSLayoutConstraint, rhs: LayoutPriority) -> NSLayoutConstraint {
lhs.priority = rhs

return lhs
Expand All @@ -38,7 +38,7 @@ public func ~ (lhs: NSLayoutConstraint, rhs: LayoutPriority) -> NSLayoutConstrai
///
/// - returns: The same constraints with their priorities updated.
///
public func ~ (lhs: [NSLayoutConstraint], rhs: LayoutPriority) -> [NSLayoutConstraint] {
@discardableResult public func ~ (lhs: [NSLayoutConstraint], rhs: LayoutPriority) -> [NSLayoutConstraint] {
return lhs.map {
$0 ~ rhs
}
Expand Down

0 comments on commit 3bda789

Please sign in to comment.