Browse Source

Update Documentation to Swift 2.0 syntax

Alex Manzella 9 years ago
parent
commit
bb48dc1377
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Source/View+SnapKit.swift

+ 5 - 5
Source/View+SnapKit.swift

@@ -123,9 +123,9 @@ public extension View {
     /**
         Prepares constraints with a `ConstraintMaker` and returns the made constraints but does not install them.
 
-        :param: closure that will be passed the `ConstraintMaker` to make the constraints with
+        - parameter closure that will be passed the `ConstraintMaker` to make the constraints with
         
-        :returns: the constraints made
+        - returns: the constraints made
     */
     public func snp_prepareConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> [Constraint] {
         return ConstraintMaker.prepareConstraints(view: self, file: file, line: line, closure: closure)
@@ -134,7 +134,7 @@ public extension View {
     /**
         Makes constraints with a `ConstraintMaker` and installs them along side any previous made constraints.
         
-        :param: closure that will be passed the `ConstraintMaker` to make the constraints with
+        - parameter closure that will be passed the `ConstraintMaker` to make the constraints with
     */
     public func snp_makeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
         ConstraintMaker.makeConstraints(view: self, file: file, line: line, closure: closure)
@@ -145,7 +145,7 @@ public extension View {
     
         For constraints to match only the constant can be updated.
     
-        :param: closure that will be passed the `ConstraintMaker` to update the constraints with
+        - parameter closure that will be passed the `ConstraintMaker` to update the constraints with
     */
     public func snp_updateConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
         ConstraintMaker.updateConstraints(view: self, file: file, line: line, closure: closure)
@@ -154,7 +154,7 @@ public extension View {
     /**
         Remakes constraints with a `ConstraintMaker` that will first remove all previously made constraints and make and install new ones.
     
-        :param: closure that will be passed the `ConstraintMaker` to remake the constraints with
+        - parameter closure that will be passed the `ConstraintMaker` to remake the constraints with
     */
     public func snp_remakeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
         ConstraintMaker.remakeConstraints(view: self, file: file, line: line, closure: closure)