diff --git a/README.md b/README.md index cfe6b7be..7aaf26f2 100644 --- a/README.md +++ b/README.md @@ -1000,9 +1000,9 @@ Same as `ResultAsync.fromPromise` except that it does not handle the rejection o **Signature:** ```typescript -// fromPromise is a static class method +// fromSafePromise is a static class method // also available as a standalone function -// import { fromPromise } from 'neverthrow' +// import { fromSafePromise } from 'neverthrow' ResultAsync.fromSafePromise( promise: PromiseLike ): ResultAsync { ... }