mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Minor comments about matrix printing
This commit is contained in:
+2
-1
@@ -1927,8 +1927,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
|||||||
fi.indent += 1
|
fi.indent += 1
|
||||||
|
|
||||||
if fi.hash {
|
if fi.hash {
|
||||||
|
// Printed as it is written
|
||||||
io.write_byte(fi.writer, '\n')
|
io.write_byte(fi.writer, '\n')
|
||||||
// TODO(bill): Should this render it like in written form? e.g. tranposed
|
|
||||||
for col in 0..<info.column_count {
|
for col in 0..<info.column_count {
|
||||||
fmt_write_indent(fi)
|
fmt_write_indent(fi)
|
||||||
for row in 0..<info.row_count {
|
for row in 0..<info.row_count {
|
||||||
@@ -1942,6 +1942,7 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
|||||||
io.write_string(fi.writer, ",\n")
|
io.write_string(fi.writer, ",\n")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// Printed in Row-Major layout to match text layout
|
||||||
for col in 0..<info.column_count {
|
for col in 0..<info.column_count {
|
||||||
if col > 0 { io.write_string(fi.writer, "; ") }
|
if col > 0 { io.write_string(fi.writer, "; ") }
|
||||||
for row in 0..<info.row_count {
|
for row in 0..<info.row_count {
|
||||||
|
|||||||
Reference in New Issue
Block a user