Skip to content

Commit

Permalink
Improve the docs on the snapshot macro
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed May 15, 2024
1 parent 65947be commit f291ca8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions insta/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,12 @@ macro_rules! assert_display_snapshot {
///
/// ```no_run
/// # use insta::*;
/// // implicitly named
/// assert_snapshot!("reference value to snapshot");
/// // named
/// assert_snapshot!("snapshot_name", "reference value to snapshot");
/// // inline
/// assert_snapshot!("reference value", @"reference value");
/// ```
///
/// Optionally a third argument can be given as an expression to be stringified
Expand Down

0 comments on commit f291ca8

Please sign in to comment.