From c6ddc279b21f2ec8f5e5c6697341d641eefadeb6 Mon Sep 17 00:00:00 2001 From: Xuan <97ssps30212@gmail.com> Date: Tue, 2 Dec 2025 15:51:22 +0800 Subject: [PATCH] doc: correct the method in the comment Updated the function in the comment to 'fromSafePromise'. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { ... }