Skip to content

Commit

Permalink
Move @NoEscape to type attributes as per SE-0049.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhealy committed Jun 14, 2016
1 parent 8e4b00a commit a6c6b54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Color/Wrap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public struct Wrap: SelectGraphicRenditionWrapType {
}
}

private func levelTransform(_ level: Level, @noescape transform: ColorType -> ColorType) -> (
private func levelTransform(_ level: Level, transform: @noescape (ColorType) -> ColorType) -> (
transformed: Bool,
parameters: UnderlyingCollection
) {
Expand All @@ -157,14 +157,14 @@ public struct Wrap: SelectGraphicRenditionWrapType {
}

/// Synchronously transform all ColorTypes with a `Level` of `Foreground`.
public mutating func foreground(@noescape transform: ColorType -> ColorType) -> Bool {
public mutating func foreground(transform: @noescape (ColorType) -> ColorType) -> Bool {
let transformation = levelTransform(.Foreground, transform: transform)
self.parameters = transformation.parameters
return transformation.transformed
}

/// Synchronously transform all ColorTypes with a `Level` of `Background`.
public mutating func background(@noescape transform: ColorType -> ColorType) -> Bool {
public mutating func background(transform: @noescape (ColorType) -> ColorType) -> Bool {
let transformation = levelTransform(.Background, transform: transform)
self.parameters = transformation.parameters
return transformation.transformed
Expand Down

0 comments on commit a6c6b54

Please sign in to comment.