title: Ruby do/end vs braces
body: <p>Why does this map expression produce different results depending on whether I use braces or do/end?</p>
  
  <pre><code>a = [1,2,3,4,5]
  
  
  p a.map { |n|
      n*2
  }  
  #=&gt; [2,4,6,8,10]
  
  
  p a.map do |n|
      n*2
  end  
  #=&gt; [1,2,3,4,5]
  </code></pre>