Fix bitstring order in precise GC docs (#3947)

docs: Fix bitstring order in precise GC docs
This commit is contained in:
Anuraag Agrawal
2023-10-13 15:57:30 +09:00
committed by GitHub
parent 75bba42b60
commit c2f1965e03
+2 -2
View File
@@ -18,8 +18,8 @@
// | object type | size | bitstring | note // | object type | size | bitstring | note
// |-------------|------|-----------|------ // |-------------|------|-----------|------
// | int | 1 | 0 | no pointers in this object // | int | 1 | 0 | no pointers in this object
// | string | 2 | 10 | {pointer, len} pair so there is one pointer // | string | 2 | 01 | {pointer, len} pair so there is one pointer
// | []int | 3 | 100 | {pointer, len, cap} // | []int | 3 | 001 | {pointer, len, cap}
// | [4]*int | 1 | 1 | even though it contains 4 pointers, an array repeats so it can be stored with size=1 // | [4]*int | 1 | 1 | even though it contains 4 pointers, an array repeats so it can be stored with size=1
// | [30]byte | 1 | 0 | there are no pointers so the layout is very simple // | [30]byte | 1 | 0 | there are no pointers so the layout is very simple
// //