mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
Fix typo in AsRef doc
This commit is contained in:
parent
538e17a3fd
commit
9583398923
@ -129,7 +129,7 @@ pub const fn identity<T>(x: T) -> T { x }
|
||||
/// # Examples
|
||||
///
|
||||
/// By using trait bounds we can accept arguments of different types as long as they can be
|
||||
/// converted a the specified type `T`.
|
||||
/// converted to the specified type `T`.
|
||||
///
|
||||
/// For example: By creating a generic function that takes an `AsRef<str>` we express that we
|
||||
/// want to accept all references that can be converted to `&str` as an argument.
|
||||
|
Loading…
Reference in New Issue
Block a user