diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-09 05:42:26 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-06-09 05:42:26 +0530 |
| commit | 0e4a361619e7d8e0e597db0be676a950e666f03c (patch) | |
| tree | 8709940255c888fa1ef0aab5ce3623fc8a398059 /src/liballoc_jemalloc | |
| parent | 91b72011cc0b788c94d76e5967c894d1269d89f5 (diff) | |
| parent | ee4b58c7925a914abac8ebc7a0fc0be0cb6cb0c7 (diff) | |
| download | rust-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
