fix doc comments about error_generic_member_access

This commit is contained in:
Slanterns 2024-06-04 05:33:03 +08:00
parent 76065f5b27
commit c6f1934d34
No known key found for this signature in database
GPG Key ID: 1AA37EE7FAAE433A

View File

@ -360,7 +360,7 @@ impl dyn Error {
/// Get a string value from an error.
///
/// ```rust
/// # #![feature(error_generic_member_access)]
/// #![feature(error_generic_member_access)]
/// use std::error::Error;
/// use core::error::request_value;
///
@ -383,7 +383,7 @@ where
/// Get a string reference from an error.
///
/// ```rust
/// # #![feature(error_generic_member_access)]
/// #![feature(error_generic_member_access)]
/// use core::error::Error;
/// use core::error::request_ref;
///