title: Extra argument 'completion' in call in swift
body: <p>I am totally new in Swift language ..I have written function with completion block </p>
  
  <pre><code>import Foundation
  import Alamofire
  
  struct ConnectionManager {
  func callGetMethod(url:NSString , completion:(responseData:AnyObject,errorMessage:NSError)-&gt;Void)
  {
  
      let urlObj = NSURL(string: url)!
  
      Alamofire.request(.GET, urlObj).responseJSON() {
          (_, _, data, error) in
  
          completion( responseData: data!, errorMessage: error!)
  
          println(data)
      }
  }
  }
  </code></pre>
  
  <p>and calling from my viewcontroller but i am getting error Extra argument  compilation in call  . </p>
  
  <pre><code> var stringurl="http://"
  
   ConnectionManager.callGetMethod(url:stringurl,completion:{(responseData,errorMessage) in
  
      })
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/8Majm.png" alt="enter image description here">
   Please advise me ..
   Thanks in advance</p>