Updating closures to Swift 3 - @escaping
<p>I've updated my code to Xcode 8.0 beta 6 but I got stuck with what seems to be about the new non escaping closure default. In the following code Xcode suggests to add <code>@escaping</code> in front of <code>completion:</code> in the first line of the below code, but that still won't compile and goes in circles. *</p>

<p>(<strong>EDIT</strong>: In fact, @escaping should be added in <strong>after</strong> <code>completion:</code>, as Xcode suggests. The alert may still show but cleaning and compiling will remove it.)* How should this code be re-written / fixed to work in the updated Swift 3?
I've had a look in the new manual but I couldn't find proper code samples.</p>

<pre><code>func doSomething(withParameter parameter: Int, completion: () -&gt; ()) {
    // Does something

    callSomeOtherFunc(withCompletion: completion)
  }

// Calling the method and execute closure 
doSomething(withParameter: 2) {
  // do things in closure
}
</code></pre>

<p>Any help much appreciated!</p>