]> git.lizzy.rs Git - rust.git/commit
Auto merge of #43614 - pornel:is_gotcha, r=BurntSushi
authorbors <bors@rust-lang.org>
Wed, 2 Aug 2017 19:01:01 +0000 (19:01 +0000)
committerbors <bors@rust-lang.org>
Wed, 2 Aug 2017 19:01:01 +0000 (19:01 +0000)
commitb75d1f0ce252f4b53f8a97aee0fcf4a785186fef
treec039a5164f64464a0669e93d78a9e1e747d7c1f6
parent4596c71fc5556966a86a226f55f0d0deb9493e60
parent4792d28ef1ce958698d20d7c20baa78c83c3140e
Auto merge of #43614 - pornel:is_gotcha, r=BurntSushi

Emphasise that these functions look at the disk, not just the path

I thought that `PathBuf::new("foo/bar/").is_dir()` is always true, because the path ends in `/`. However, this is not what `is_dir()` function does. So I've updated the docs to make it clear.