mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-08 22:52:29 +08:00
update doc
This commit is contained in:
@@ -360,7 +360,6 @@ func StringToBytes(str string) (b []byte) {
|
||||
}
|
||||
|
||||
// BytesToString converts a byte slice to string without a memory allocation.
|
||||
// Play: todo
|
||||
func BytesToString(bytes []byte) string {
|
||||
return *(*string)(unsafe.Pointer(&bytes))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user