From 1cb9f2aea8332808f63a4d315b6cd60f431e88f2 Mon Sep 17 00:00:00 2001 From: Victor Poughon Date: Sat, 26 Jul 2025 18:01:42 +0200 Subject: [PATCH] docs: fix async map anchor links in README --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ed09979..a3daf44f 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ For asynchronous tasks, `neverthrow` offers a `ResultAsync` class which wraps a - [`Result.asyncAndThen` (method)](#resultasyncandthen-method) - [`Result.orElse` (method)](#resultorelse-method) - [`Result.match` (method)](#resultmatch-method) - - [`Result.asyncMap` (method)](#resultasyncmap-method) + - [`Result.asyncMap` (method)](#result-asyncmap-method) - [`Result.andTee` (method)](#resultandtee-method) - [`Result.orTee` (method)](#resultortee-method) - [`Result.andThrough` (method)](#resultandthrough-method) @@ -49,7 +49,7 @@ For asynchronous tasks, `neverthrow` offers a `ResultAsync` class which wraps a - [`ResultAsync.fromThrowable` (static class method)](#resultasyncfromthrowable-static-class-method) - [`ResultAsync.fromPromise` (static class method)](#resultasyncfrompromise-static-class-method) - [`ResultAsync.fromSafePromise` (static class method)](#resultasyncfromsafepromise-static-class-method) - - [`ResultAsync.map` (method)](#resultasyncmap-method) + - [`ResultAsync.map` (method)](#resultasync-map-method) - [`ResultAsync.mapErr` (method)](#resultasyncmaperr-method) - [`ResultAsync.unwrapOr` (method)](#resultasyncunwrapor-method) - [`ResultAsync.andThen` (method)](#resultasyncandthen-method) @@ -511,6 +511,7 @@ const answer = computationThatMightFail() --- + #### `Result.asyncMap` (method) Similar to `map` except for two things: @@ -1038,6 +1039,7 @@ export const signupHandler = route((req, sessionManager) => --- + #### `ResultAsync.map` (method) Maps a `ResultAsync` to `ResultAsync` by applying a function to a contained `Ok` value, leaving an `Err` value untouched.