Browse Source

Correct directory comment printing

gingerBill 3 years ago
parent
commit
b3c3e41706
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/odin-html-docs/odin_html_docs_main.odin

+ 1 - 1
tools/odin-html-docs/odin_html_docs_main.odin

@@ -481,7 +481,7 @@ write_collection_directory :: proc(w: io.Writer, collection: ^Collection) {
 			line_doc, _, _ := strings.partition(str(child.pkg.docs), "\n")
 			line_doc, _, _ := strings.partition(str(child.pkg.docs), "\n")
 			line_doc = strings.trim_space(line_doc)
 			line_doc = strings.trim_space(line_doc)
 			io.write_string(w, `<td class="pkg-line pkg-line-doc">`)
 			io.write_string(w, `<td class="pkg-line pkg-line-doc">`)
-			if line_doc, ok := get_line_doc(dir.pkg); ok {
+			if line_doc, ok := get_line_doc(child.pkg); ok {
 				write_doc_line(w, line_doc)
 				write_doc_line(w, line_doc)
 			} else {
 			} else {
 				io.write_string(w, `&nbsp;`)
 				io.write_string(w, `&nbsp;`)