From 7914d1b8b7d45965c1cefffb6d250ed463e9a78e Mon Sep 17 00:00:00 2001 From: Dato Simó Date: Wed, 30 Sep 2015 01:18:23 -0300 Subject: Fix typo in docs: usize is unsigned, not signed. --- src/libstd/primitive_docs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index f2ae168e560..7d62d477a0a 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -411,7 +411,7 @@ mod prim_isize { } #[doc(primitive = "usize")] // -/// The pointer-sized signed integer type. +/// The pointer-sized unsigned integer type. /// /// *[See also the `std::usize` module](usize/index.html).* /// -- cgit 1.4.1-3-g733a5 From c6b8deef7dad7b93b8939b0cd994eadfac546ed1 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 30 Sep 2015 08:39:02 +0200 Subject: doc: fix typo --- src/libstd/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 8eb5d1f2726..ed70c2bd7b4 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -1292,7 +1292,7 @@ impl Path { /// use std::path::Path; /// /// let path_str = Path::new("foo.txt").to_str(); - //// assert_eq!(path_str, Some("foo.txt")); + /// assert_eq!(path_str, Some("foo.txt")); /// ``` #[stable(feature = "rust1", since = "1.0.0")] pub fn to_str(&self) -> Option<&str> { -- cgit 1.4.1-3-g733a5 From ffab1b405c4008d935e05f2f3eebd3b97bdb0863 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 30 Sep 2015 12:00:02 +0200 Subject: path: remove a line of code that is not useful --- src/libstd/path.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 8eb5d1f2726..01588a681b8 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -351,7 +351,6 @@ impl<'a> Prefix<'a> { /// ``` #[stable(feature = "rust1", since = "1.0.0")] pub fn is_separator(c: char) -> bool { - use ascii::*; c.is_ascii() && is_sep_byte(c as u8) } -- cgit 1.4.1-3-g733a5