Improve fmt's %#v behaviour for nested records

This commit is contained in:
gingerBill
2021-02-04 14:52:23 +00:00
parent f50ea36c70
commit 825c5a963f
2 changed files with 88 additions and 44 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ append_bits :: proc(buf: []byte, x: u64, base: int, is_signed: bool, bit_size: i
switch base {
case 2: i-=1; a[i] = 'b';
case 8: i-=1; a[i] = 'o';
case 10: i-=1; a[i] = 'd';
// case 10: i-=1; a[i] = 'd';
case 12: i-=1; a[i] = 'z';
case 16: i-=1; a[i] = 'x';
case: ok = false;