From e2ff83649aaa1de4a6ef8fd6d75a9b5e76f28424 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Wed, 6 Nov 2024 10:15:47 +0800 Subject: [PATCH] doc: format code in doc file --- docs/api/packages/xerror.md | 4 ++-- docs/en/api/packages/xerror.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/packages/xerror.md b/docs/api/packages/xerror.md index 002765b..164a507 100644 --- a/docs/api/packages/xerror.md +++ b/docs/api/packages/xerror.md @@ -529,8 +529,8 @@ func main() { return errors.New("error in try block") }).Catch(func(ctx context.Context, err error) { calledCatch = true - // Error in try block at /path/xxx.go:{line_number} - Cause: error message - // fmt.Println(err.Error()) + // Error in try block at /path/xxx.go:{line_number} - Cause: error message + // fmt.Println(err.Error()) }).Finally(func(ctx context.Context) { calledFinally = true }).Do() diff --git a/docs/en/api/packages/xerror.md b/docs/en/api/packages/xerror.md index f4dc44f..bdf96db 100644 --- a/docs/en/api/packages/xerror.md +++ b/docs/en/api/packages/xerror.md @@ -528,7 +528,7 @@ func main() { }).Catch(func(ctx context.Context, err error) { calledCatch = true // Error in try block at /path/xxx.go:{line_number} - Cause: error message - // fmt.Println(err.Error()) + // fmt.Println(err.Error()) }).Finally(func(ctx context.Context) { calledFinally = true }).Do()