File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ pub const fn identity<T>(x: T) -> T { x }
132
132
/// converted a the specified type `T`.
133
133
///
134
134
/// For example: By creating a generic function that takes an `AsRef<str>` we express that we
135
- /// want to accept all references that can be converted to &str as an argument.
135
+ /// want to accept all references that can be converted to ` &str` as an argument.
136
136
/// Since both [`String`] and `&str` implement `AsRef<str>` we can accept both as input argument.
137
137
///
138
138
/// [`String`]: ../../std/string/struct.String.html
@@ -312,7 +312,8 @@ pub trait Into<T>: Sized {
312
312
///
313
313
/// [`String`] implements `From<&str>`:
314
314
///
315
- /// An explicit conversion from a &str to a String is done as follows:
315
+ /// An explicit conversion from a `&str` to a String is done as follows:
316
+ ///
316
317
/// ```
317
318
/// let string = "hello".to_string();
318
319
/// let other_string = String::from("hello");
You can’t perform that action at this time.
0 commit comments