diff options
author | 2024-03-25 10:31:19 +0000 | |
---|---|---|
committer | 2024-03-25 10:31:19 +0000 | |
commit | 40ee47053684a87c717b941951df44d5a0ea9129 (patch) | |
tree | 84edccfe00216c10231838ea1f453542bb566e52 /vendor/github.com/bytedance/sonic/api.go | |
parent | [chore] Move local account settings to separate db table (#2770) (diff) | |
download | gotosocial-40ee47053684a87c717b941951df44d5a0ea9129.tar.xz |
[chore]: Bump github.com/gin-contrib/gzip from 0.0.6 to 1.0.0 (#2781)
Diffstat (limited to 'vendor/github.com/bytedance/sonic/api.go')
-rw-r--r-- | vendor/github.com/bytedance/sonic/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/bytedance/sonic/api.go b/vendor/github.com/bytedance/sonic/api.go index 54d9a2160..093329127 100644 --- a/vendor/github.com/bytedance/sonic/api.go +++ b/vendor/github.com/bytedance/sonic/api.go @@ -80,7 +80,7 @@ type Config struct { } var ( - // ConfigDefault is the default config of APIs, aiming at efficiency and safty. + // ConfigDefault is the default config of APIs, aiming at efficiency and safety. ConfigDefault = Config{}.Froze() // ConfigStd is the standard config of APIs, aiming at being compatible with encoding/json. @@ -118,7 +118,7 @@ type API interface { NewEncoder(writer io.Writer) Encoder // NewDecoder create a Decoder holding reader NewDecoder(reader io.Reader) Decoder - // Valid validates the JSON-encoded bytes and reportes if it is valid + // Valid validates the JSON-encoded bytes and reports if it is valid Valid(data []byte) bool } @@ -184,7 +184,7 @@ func UnmarshalString(buf string, val interface{}) error { // // Notice: It expects the src json is **Well-formed** and **Immutable** when calling, // otherwise it may return unexpected result. -// Considering memory safty, the returned JSON is **Copied** from the input +// Considering memory safety, the returned JSON is **Copied** from the input func Get(src []byte, path ...interface{}) (ast.Node, error) { return GetCopyFromString(rt.Mem2Str(src), path...) } |