diff options
| author | Carol Nichols <carol.nichols@gmail.com> | 2015-06-03 10:12:16 -0400 |
|---|---|---|
| committer | Carol Nichols <carol.nichols@gmail.com> | 2015-06-03 10:12:16 -0400 |
| commit | 9634bcbd3d120e7a13b62bb47e882fc9ce6338cd (patch) | |
| tree | 242e0ba071a808b321eedcf7aaa2e48521df15fb /src/rustllvm/PassWrapper.cpp | |
| parent | 5b56d73dc0e8b988f91c44fd9f9e40331451796b (diff) | |
| download | rust-9634bcbd3d120e7a13b62bb47e882fc9ce6338cd.tar.gz rust-9634bcbd3d120e7a13b62bb47e882fc9ce6338cd.zip | |
Improve `try!` docs to make clearer it returns `Result`.
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.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
