mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-19 13:45:16 +00:00
...
This commit is contained in:
parent
a8480a4ca6
commit
7ea4270c88
1 changed files with 1 additions and 2 deletions
|
|
@ -21,6 +21,5 @@ func UnsafeStringToBytes(s string) (b []byte) {
|
|||
// If you modify b, then s will also be modified. This violates the
|
||||
// property that strings are immutable.
|
||||
func UnsafeBytesToString(b []byte) (s string) {
|
||||
unsafe.String(unsafe.SliceData(b), len(b))
|
||||
return s
|
||||
return unsafe.String(unsafe.SliceData(b), len(b))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue