]> git.lizzy.rs Git - rust.git/commitdiff
path: clean up some lint warnings and an obsolete comment
authorKevin Ballard <kevin@sb.org>
Thu, 27 Feb 2014 08:19:27 +0000 (00:19 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 28 Feb 2014 05:04:04 +0000 (21:04 -0800)
Get rid of the unnecessary parenthesies that crept into some macros.
Remove a FIXME that was already fixed.
Fix a comment that wasn't rendering correctly in rustdoc.

src/libstd/path/windows.rs

index 10834aec64c94ea9bc836ea70bb3e1ad3a603c35..bf437875b844985f4023238f08cbe571ba31324e 100644 (file)
@@ -865,7 +865,7 @@ pub fn prefix(path: &Path) -> Option<PathPrefix> {
     path.prefix
 }
 
-/// Returns whether the Path's prefix is a verbatim prefix, i.e. \\?\
+/// Returns whether the Path's prefix is a verbatim prefix, i.e. `\\?\`
 #[inline]
 pub fn is_verbatim(path: &Path) -> bool {
     prefix_is_verbatim(path.prefix)
@@ -926,7 +926,6 @@ pub enum PathPrefix {
     DiskPrefix
 }
 
-// FIXME (#8169): Make private once visibility is fixed
 fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> {
     if path.starts_with("\\\\") {
         // \\