about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-04 10:07:02 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-04 10:07:02 +0530
commit8b57130e8450baed5c851686d9c8ead20223f5a4 (patch)
tree6832529dbfac50ef6c9a1531a242fb2f5fd96bb5 /src/rustllvm/ExecutionEngineWrapper.cpp
parent5421b1fa25108a5100faa772840202f304293e0f (diff)
parentc692d75b5a595ef5939473aef20e1751d4e0e1f5 (diff)
downloadrust-8b57130e8450baed5c851686d9c8ead20223f5a4.tar.gz
rust-8b57130e8450baed5c851686d9c8ead20223f5a4.zip
Rollup merge of #25990 - carols10cents:try-docs, r=nikomatsakis
The API documentation is not explicit enough that because `try!` returns
`Err` early for you, you can only use it in functions that return
`Result`. The book mentions this, but if you come across `try!` outside
of the book and look it up in the docs, this restriction on the return
type of the function is not particularly clear.

I seriously had this epiphany a few days ago after working with Rust for MONTHS, and after seeing [a friend have to come to the same realization](http://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-2a/), I'd like to save more people from this confusion :) :sparkling_heart: 
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions