]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #35620 - cvubrugier:master, r=Manishearth
authorEduard-Mihai Burtescu <edy.burt@gmail.com>
Sun, 14 Aug 2016 17:29:51 +0000 (20:29 +0300)
committerGitHub <noreply@github.com>
Sun, 14 Aug 2016 17:29:51 +0000 (20:29 +0300)
commit5766b4257248a73b6cbe85b13482f09c9aa2ccdd
treed38bad68f7ea287ff281f160aa9b5b064f37e656
parent15f66ad326555011abaccaa2d4a758833cc7d2a1
parent3042fba44c82a42e427b9e301f3d3f3412e747dc
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>