File tree 4 files changed +10
-4
lines changed
4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,8 @@ impl From<String> for Box<dyn Error> {
296
296
impl < ' a > From < & str > for Box < dyn Error + Send + Sync + ' a > {
297
297
/// Converts a [`str`] into a box of dyn [`Error`] + [`Send`] + [`Sync`].
298
298
///
299
+ /// [`str`]: prim@str
300
+ ///
299
301
/// # Examples
300
302
///
301
303
/// ```
@@ -317,6 +319,8 @@ impl<'a> From<&str> for Box<dyn Error + Send + Sync + 'a> {
317
319
impl From < & str > for Box < dyn Error > {
318
320
/// Converts a [`str`] into a box of dyn [`Error`].
319
321
///
322
+ /// [`str`]: prim@str
323
+ ///
320
324
/// # Examples
321
325
///
322
326
/// ```
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ use crate::sys;
69
69
/// extern functions. See the documentation for that function for a
70
70
/// discussion on ensuring the lifetime of the raw pointer.
71
71
///
72
- /// [`&str`]: str
72
+ /// [`&str`]: prim@ str
73
73
/// [slice.as_ptr]: ../primitive.slice.html#method.as_ptr
74
74
/// [slice.len]: ../primitive.slice.html#method.len
75
75
/// [`Deref`]: ops::Deref
@@ -180,7 +180,7 @@ pub struct CString {
180
180
/// println!("string: {}", my_string_safe());
181
181
/// ```
182
182
///
183
- /// [`&str`]: str
183
+ /// [`&str`]: prim@ str
184
184
#[ derive( Hash ) ]
185
185
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
186
186
// FIXME:
@@ -1351,7 +1351,7 @@ impl CStr {
1351
1351
/// function will return the corresponding [`&str`] slice. Otherwise,
1352
1352
/// it will return an error with details of where UTF-8 validation failed.
1353
1353
///
1354
- /// [`&str`]: str
1354
+ /// [`&str`]: prim@ str
1355
1355
///
1356
1356
/// # Examples
1357
1357
///
@@ -1379,6 +1379,7 @@ impl CStr {
1379
1379
/// [`U+FFFD REPLACEMENT CHARACTER`][U+FFFD] and return a
1380
1380
/// [`Cow`]`::`[`Owned`]`(`[`String`]`)` with the result.
1381
1381
///
1382
+ /// [`str`]: prim@str
1382
1383
/// [`Borrowed`]: Cow::Borrowed
1383
1384
/// [`Owned`]: Cow::Owned
1384
1385
/// [U+FFFD]: crate::char::REPLACEMENT_CHARACTER
Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ where
480
480
/// ```
481
481
///
482
482
/// [`read()`]: Read::read
483
- /// [`&str`]: str
483
+ /// [`&str`]: prim@ str
484
484
/// [`std::io`]: self
485
485
/// [`File`]: crate::fs::File
486
486
/// [slice]: ../../std/primitive.slice.html
Original file line number Diff line number Diff line change 172
172
//! [`Vec<T>`]: vec::Vec
173
173
//! [`atomic`]: sync::atomic
174
174
//! [`for`]: ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
175
+ //! [`str`]: prim@str
175
176
//! [`mpsc`]: sync::mpsc
176
177
//! [`std::cmp`]: cmp
177
178
//! [`std::slice`]: slice
You can’t perform that action at this time.
0 commit comments