]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #73243 - poliorcetics:discourage-is-file, r=Amanieu
authorManish Goregaokar <manishsmail@gmail.com>
Sun, 28 Jun 2020 05:29:52 +0000 (22:29 -0700)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2020 05:29:52 +0000 (22:29 -0700)
commit6a944c15ab87ae6a2cb4a22b4781f39b8955031b
tree74342f37d97cbb30c1cbb053efec5dd281ddb9db
parent385d85c858863e9dee88c4d65d4016599c4323d7
parent8e8c54aa3a8d92d8443ec4596754d14b2d196899
Rollup merge of #73243 - poliorcetics:discourage-is-file, r=Amanieu

Add documentation to point to `File::open` or `OpenOptions::open` instead of `is_file` to check read/write possibility

Fixes #64170.

This adds documentation to point user towards `!is_dir` instead of `is_file` when all they want to is read from a source.

I ran `rg "fn is_file\("` to find all `is_file` methods, I hope I did not miss one.