Skip to content

Commit

Permalink
better to use compile_fail since private function can't be compiled i…
Browse files Browse the repository at this point in the history
…n doctest
  • Loading branch information
zhw2101024 committed May 26, 2023
1 parent 7ae24d9 commit cb60ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl<'a> Auth<'a> {
/// This method is useful when the function returns a Result type.
/// It is intended to be used primarily
/// with the `?` operator.
/// ```ignore
/// ```compile_fail
/// # fn func(auth: rocket_auth::Auth) -> Result<(), rocket_auth::Error> {
/// auth.get_session()?;
/// # Ok(())
Expand Down

0 comments on commit cb60ccf

Please sign in to comment.