summaryrefslogtreecommitdiff
path: root/vendor/github.com/bytedance/sonic/ast/node.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/bytedance/sonic/ast/node.go')
-rw-r--r--vendor/github.com/bytedance/sonic/ast/node.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/bytedance/sonic/ast/node.go b/vendor/github.com/bytedance/sonic/ast/node.go
index 2bb504850..17964c32f 100644
--- a/vendor/github.com/bytedance/sonic/ast/node.go
+++ b/vendor/github.com/bytedance/sonic/ast/node.go
@@ -71,7 +71,7 @@ func (self *Node) UnmarshalJSON(data []byte) (err error) {
/** Node Type Accessor **/
// Type returns json type represented by the node
-// It will be one of belows:
+// It will be one of bellows:
// V_NONE = 0 (empty node, key not exists)
// V_ERROR = 1 (error node)
// V_NULL = 2 (json value `null`, key exists)
@@ -89,7 +89,7 @@ func (self Node) Type() int {
}
// Type concurrently-safe returns json type represented by the node
-// It will be one of belows:
+// It will be one of bellows:
// V_NONE = 0 (empty node, key not exists)
// V_ERROR = 1 (error node)
// V_NULL = 2 (json value `null`, key exists)
@@ -1678,7 +1678,7 @@ func NewBytes(src []byte) Node {
if len(src) == 0 {
panic("empty src bytes")
}
- out := rt.EncodeBase64(src)
+ out := rt.EncodeBase64ToString(src)
return NewString(out)
}