1. 14 4月, 2015 6 次提交
  2. 13 4月, 2015 14 次提交
  3. 12 4月, 2015 18 次提交
  4. 11 4月, 2015 2 次提交
    • M
      Fix readme doctest (fixup #24239) · 0a2885ad
      Manish Goregaokar 提交于
      0a2885ad
    • B
      Auto merge of #24269 - benashford:formatting-fix, r=alexcrichton · 67a8f617
      bors 提交于
      This fixes the bug described in issue #23150.  This affected formatting any floating point number into a string in a formatting pattern that: a) required rounding up, and b) required an extra digit on the front.
      
      So `format!("{:.0}", 9.9)` would fail, but `format!("{:.0}", 8.9)` would succeed.  This was due to a negative integer being cast to a `usize` resulting in an 'arithmetic operation overflowed' panic.
      
      The fix was to change the order of operations so that the number is zero before casting.
      67a8f617