summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--src/lib.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3a47fdc..bbb0dd0 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ into `Exun` and `RawUnexpected` errors automatically, and it's needed for
`Result::unexpect`.
* `alloc`: This is needed for `RawUnexpected` and `UnexpectedError` to hold
-string messages. This can be done with `Result::unexpect_mshg`. Without this,
+string messages. This can be done with `Result::unexpect_msg`. Without this,
only the equivalent of `Result::unexpect_none` can be constructed.
To disable these features:
diff --git a/src/lib.rs b/src/lib.rs
index faae525..b112887 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -47,7 +47,7 @@
//! [`Result::unexpect`].
//!
//! * `alloc`: This is needed for `RawUnexpected` and `UnexpectedError` to hold
-//! string messages. This can be done with `Result::unexpect_mshg`. Without this,
+//! string messages. This can be done with `Result::unexpect_msg`. Without this,
//! only the equivalent of `Result::unexpect_none` can be constructed.
//!
//! To disable these features: