From 2b7839b47b9d94494f39c2fdf785c84554ca71dc Mon Sep 17 00:00:00 2001 From: fantasy Date: Tue, 3 Dec 2024 10:35:21 +0800 Subject: [PATCH] fix: readme typos (#720) --- README_ZH_CN.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README_ZH_CN.md b/README_ZH_CN.md index 4f8980c53..0730ecec4 100644 --- a/README_ZH_CN.md +++ b/README_ZH_CN.md @@ -286,9 +286,9 @@ sub := root.Get("key3").Index(2).Int64() // == 3 `ast.Searcher`提供了一些选项,以满足用户的不同需求: -``` -opts:= ast.SearchOption{CopyReturn: true…} -Val, err:= sonic。gettwithoptions (JSON, opts, "key") +```go +opts := ast.SearchOption{CopyReturn: true…} +val, err := sonic.GetWithOptions(JSON, opts, "key") ``` - CopyReturn