Browse Source

Fix typos in doc

oskarnp 2 years ago
parent
commit
8862f9118b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/text/table/doc.odin

+ 3 - 3
core/text/table/doc.odin

@@ -11,8 +11,8 @@
 	row(tbl, "A_LONG_ENUM", "= 54,", "// A comment about A_LONG_ENUM")
 	row(tbl, "A_LONG_ENUM", "= 54,", "// A comment about A_LONG_ENUM")
 	row(tbl, "AN_EVEN_LONGER_ENUM", "= 1,", "// A comment about AN_EVEN_LONGER_ENUM")
 	row(tbl, "AN_EVEN_LONGER_ENUM", "= 1,", "// A comment about AN_EVEN_LONGER_ENUM")
 	build(tbl)
 	build(tbl)
-	for row in 0..<enum_tbl.nr_rows {
-		for col in 0..<enum_tbl.nr_cols {
+	for row in 0..<tbl.nr_rows {
+		for col in 0..<tbl.nr_cols {
 			write_table_cell(stdio_writer(), tbl, row, col)
 			write_table_cell(stdio_writer(), tbl, row, col)
 		}
 		}
 		io.write_byte(stdio_writer(), '\n')
 		io.write_byte(stdio_writer(), '\n')
@@ -38,7 +38,7 @@
 	padding(tbl, 1, 1) // Left/right padding of cells
 	padding(tbl, 1, 1) // Left/right padding of cells
 
 
 	header(tbl, "AAAAAAAAA", "B")
 	header(tbl, "AAAAAAAAA", "B")
-	header(tbl, "C") // Appends to previous header row. Same as if done header("A", "B", "C") from start.
+	header(tbl, "C") // Appends to previous header row. Same as if done header("AAAAAAAAA", "B", "C") from start.
 
 
 	// Create a row with two values. Since there are three columns the third
 	// Create a row with two values. Since there are three columns the third
 	// value will become the empty string.
 	// value will become the empty string.