]> git.lizzy.rs Git - rust.git/commit
path: Fix joining Windows path when the receiver is "C:"
authorKevin Ballard <kevin@sb.org>
Wed, 15 Jan 2014 20:53:56 +0000 (12:53 -0800)
committerKevin Ballard <kevin@sb.org>
Wed, 15 Jan 2014 20:53:56 +0000 (12:53 -0800)
commitc57920b37b401ca364b6d4c99dc714f28988c7f0
tree5cf8fc5d56e3f9614ecb693b78eaf4c89ededf96
parent900893112570eea5a01c0573ae1fa1e3a72397e9
path: Fix joining Windows path when the receiver is "C:"

WindowsPath::new("C:").join("a") produces r"C:\a". This is incorrect.
It should produce "C:a".
src/libstd/path/windows.rs