File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ impl GenericPathUnsafe for Path {
154154 ///
155155 /// # Failure
156156 ///
157- /// Raises the `str::not_utf8` condition if not valid UTF-8.
157+ /// Fails if not valid UTF-8.
158158 #[ inline]
159159 unsafe fn new_unchecked < T : BytesContainer > ( path : T ) -> Path {
160160 let ( prefix, path) = Path :: normalize_ ( path. container_as_str ( ) . unwrap ( ) ) ;
@@ -168,7 +168,7 @@ impl GenericPathUnsafe for Path {
168168 ///
169169 /// # Failure
170170 ///
171- /// Raises the `str::not_utf8` condition if not valid UTF-8.
171+ /// Fails if not valid UTF-8.
172172 unsafe fn set_filename_unchecked < T : BytesContainer > ( & mut self , filename : T ) {
173173 let filename = filename. container_as_str ( ) . unwrap ( ) ;
174174 match self . sepidx_or_prefix_len ( ) {
@@ -591,7 +591,7 @@ impl Path {
591591 /// # Failure
592592 ///
593593 /// Raises the `null_byte` condition if the vector contains a NUL.
594- /// Raises the `str::not_utf8` condition if invalid UTF-8.
594+ /// Fails if invalid UTF-8.
595595 #[ inline]
596596 pub fn new < T : BytesContainer > ( path : T ) -> Path {
597597 GenericPath :: new ( path)
Original file line number Diff line number Diff line change @@ -117,14 +117,6 @@ use default::Default;
117117use send_str:: { SendStr , SendStrOwned } ;
118118use unstable:: raw:: Repr ;
119119
120- /*
121- Section: Conditions
122- */
123-
124- condition ! {
125- pub not_utf8: ( ~str ) -> ~str ;
126- }
127-
128120/*
129121Section: Creating a string
130122*/
You can’t perform that action at this time.
0 commit comments