Skip to content

Commit

Permalink
Fix typo in ch3-asm/ch3-03-const-and-var.md
Browse files Browse the repository at this point in the history
StringHeader -> SliceHeader
  • Loading branch information
mstmdev committed Jul 13, 2022
1 parent d56e993 commit ccda828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ch3-asm/ch3-03-const-and-var.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ var helloworld []byte

```
GLOBL ·helloworld(SB),$24 // var helloworld []byte("Hello World!")
DATA ·helloworld+0(SB)/8,$text<>(SB) // StringHeader.Data
DATA ·helloworld+8(SB)/8,$12 // StringHeader.Len
DATA ·helloworld+16(SB)/8,$16 // StringHeader.Cap
DATA ·helloworld+0(SB)/8,$text<>(SB) // SliceHeader.Data
DATA ·helloworld+8(SB)/8,$12 // SliceHeader.Len
DATA ·helloworld+16(SB)/8,$16 // SliceHeader.Cap
GLOBL text<>(SB),$16
DATA text<>+0(SB)/8,$"Hello Wo" // ...string data...
Expand Down

0 comments on commit ccda828

Please sign in to comment.