Skip to content

Commit 2760575

Browse files
authored
Update cell-boc.mdx
1 parent fad8f7b commit 2760575

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/develop/data-formats/cell-boc.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,17 @@ And concat it by joining the corresponding strings into a single array of bytes:
125125

126126
```golang
127127
func (c *Cell) descriptors() []byte {
128-
ceilBytes := c.bitsSz / 8
129-
if c.bitsSz%8 ! = 0 {
130-
ceilBytes++
131-
}
128+
ceilBytes := c.bitsSz / 8
129+
if c.bitsSz%8 ! = 0 {
130+
ceilBytes++
131+
}
132132

133133
// calc size
134-
ln := ceilBytes + c.bitsSz/8
134+
ln := ceilBytes + c.bitsSz / 8
135135

136136
specBit := byte(0)
137137
if c.special {
138-
specBit = 8
138+
specBit = 8
139139
}
140140

141141
return []byte{byte(len(c.refs)) + specBit + c.level*32, byte(ln)}

0 commit comments

Comments
 (0)