Browse Source

Minor comments about matrix printing

gingerBill 3 years ago
parent
commit
8a626ef564
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/fmt/fmt.odin

+ 2 - 1
core/fmt/fmt.odin

@@ -1927,8 +1927,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
 		fi.indent += 1
 		
 		if fi.hash { 
+			// Printed as it is written
 			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 {
 				fmt_write_indent(fi)
 				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")
 			}
 		} else {
+			// Printed in Row-Major layout to match text layout
 			for col in 0..<info.column_count {
 				if col > 0 { io.write_string(fi.writer, "; ") }
 				for row in 0..<info.row_count {