]> git.lizzy.rs Git - rust.git/commit
Add more examples to Path ends_with
authorIvan Tham <pickfire@riseup.net>
Fri, 7 Aug 2020 06:16:52 +0000 (14:16 +0800)
committerGitHub <noreply@github.com>
Fri, 7 Aug 2020 06:16:52 +0000 (14:16 +0800)
commit3d1388f514ab18ad798251f511c54097ba5c60ca
tree13b7939b480fa7ba0b0492c5fbef64fc941c4d7b
parent63e34422bbaf4ae4ed5ae7309183185aa2aa13a4
Add more examples to Path ends_with

We faced a footgun when using ends_with to check extension,
showing an example could prevent that.
library/std/src/path.rs