about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-09 05:42:26 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-09 05:42:26 +0530
commit0e4a361619e7d8e0e597db0be676a950e666f03c (patch)
tree8709940255c888fa1ef0aab5ce3623fc8a398059 /src/liballoc_jemalloc
parent91b72011cc0b788c94d76e5967c894d1269d89f5 (diff)
parentee4b58c7925a914abac8ebc7a0fc0be0cb6cb0c7 (diff)
downloadrust-0e4a361619e7d8e0e597db0be676a950e666f03c.tar.gz
rust-0e4a361619e7d8e0e597db0be676a950e666f03c.zip
Rollup merge of #25909 - frankamp:patch-1, r=steveklabnik
The doc indicates that you can replace 'before' with 'after' showing the use of try!. The two examples should be equivalent, but they are not.

In the File::create we were inducing a panic before in case of error, not propagating. It is important for newbies (like myself) to understand that try! propagates failures, while unwrap can induce a panic.

The other alternative is to make the 'before' File::create also manually handle Err like the other calls. Either way it would be consistent.
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions