From 8e71ad602783a6d47f65840cdafd57ffefcb4204 Mon Sep 17 00:00:00 2001 From: Wei Lun Date: Fri, 5 Oct 2018 11:14:26 +0800 Subject: [PATCH] docs: typo on function name for handleError() (#26261) changed function name `errorHandle()` to `handleError()` PR Close #26261 --- aio/content/tutorial/toh-pt6.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/tutorial/toh-pt6.md b/aio/content/tutorial/toh-pt6.md index 2219f50795..03a933ba8b 100644 --- a/aio/content/tutorial/toh-pt6.md +++ b/aio/content/tutorial/toh-pt6.md @@ -208,7 +208,7 @@ innocuous result so that the application keeps working. #### _handleError_ -The following `errorHandler()` will be shared by many `HeroService` methods +The following `handleError()` will be shared by many `HeroService` methods so it's generalized to meet their different needs. Instead of handling the error directly, it returns an _error handler_ function to `catchError` that it @@ -223,7 +223,7 @@ After reporting the error to console, the handler constructs a user friendly message and returns a safe value to the app so it can keep working. Because each service method returns a different kind of `Observable` result, -`errorHandler()` takes a type parameter so it can return the safe value as the type that the app expects. +`handleError()` takes a type parameter so it can return the safe value as the type that the app expects. ### Tap into the _Observable_