about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-08-14 20:29:51 +0300
committerGitHub <noreply@github.com>2016-08-14 20:29:51 +0300
commit5766b4257248a73b6cbe85b13482f09c9aa2ccdd (patch)
treed38bad68f7ea287ff281f160aa9b5b064f37e656 /src/rustllvm/RustWrapper.cpp
parent15f66ad326555011abaccaa2d4a758833cc7d2a1 (diff)
parent3042fba44c82a42e427b9e301f3d3f3412e747dc (diff)
downloadrust-5766b4257248a73b6cbe85b13482f09c9aa2ccdd.tar.gz
rust-5766b4257248a73b6cbe85b13482f09c9aa2ccdd.zip
Rollup merge of #35620 - cvubrugier:master, r=Manishearth
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