diff options
| author | Christophe Vu-Brugier <cvubrugier@fastmail.fm> | 2016-08-12 11:49:52 +0200 |
|---|---|---|
| committer | Christophe Vu-Brugier <cvubrugier@fastmail.fm> | 2016-08-12 14:49:16 +0200 |
| commit | 3042fba44c82a42e427b9e301f3d3f3412e747dc (patch) | |
| tree | e77d1f071fe9136f82a894d240ebc035a2cef1c3 /src/rustllvm/RustWrapper.cpp | |
| parent | f55ac6944a88d4da62b30a16cc95893ca050c328 (diff) | |
| download | rust-3042fba44c82a42e427b9e301f3d3f3412e747dc.tar.gz rust-3042fba44c82a42e427b9e301f3d3f3412e747dc.zip | |
book: fix the hidden find() functions in error-handling.md
The hidden find() functions always returns None. Consequently, one of the examples using find() prints "No file extension found" instead of "File extension: rs" which is the expected output. This patch fixes the issue by implementing find() with std::str::find(). Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
