Skip to content

Commit

Permalink
Update documentation/messages to reflect single-delimiter support
Browse files Browse the repository at this point in the history
  • Loading branch information
ecstatic-morse committed Dec 26, 2021
1 parent e7567f1 commit 81e1333
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//! use expect_test::expect;
//!
//! let actual = 2 + 2;
//! let expected = expect![["5"]];
//! let expected = expect!["5"]; // or expect![["5"]]
//! expected.assert_eq(&actual.to_string())
//! ```
//!
Expand All @@ -25,7 +25,7 @@
//! ```no_run
//! # use expect_test::expect;
//! let actual = 2 + 2;
//! let expected = expect![["4"]];
//! let expected = expect!["4"];
//! expected.assert_eq(&actual.to_string())
//! ```
//!
Expand Down Expand Up @@ -155,7 +155,7 @@ use std::{
use once_cell::sync::{Lazy, OnceCell};

const HELP: &str = "
You can update all `expect![[]]` tests by running:
You can update all `expect!` tests by running:
env UPDATE_EXPECT=1 cargo test
Expand All @@ -173,6 +173,7 @@ fn update_expect() -> bool {
/// expect![["
/// Foo { value: 92 }
/// "]];
/// expect![r#"{"Foo": 92}"#];
/// ```
///
/// Leading indentation is stripped.
Expand Down

0 comments on commit 81e1333

Please sign in to comment.