]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #24342: tbelaire/patch-1
authorAlex Crichton <alex@alexcrichton.com>
Tue, 14 Apr 2015 17:55:44 +0000 (10:55 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 14 Apr 2015 17:55:44 +0000 (10:55 -0700)
It was mistakenly calling `with_extension` with "foo.txt" instead of "txt".
I've also added an assert.  This also calls more attention to the fact you get back a PathBuf, instead of a Path, which I feel is easy to miss when skimming.


Trivial merge