diff --git a/main.go b/main.go index 9ce108e..e205eae 100644 --- a/main.go +++ b/main.go @@ -84,7 +84,7 @@ func print_children(heading *heading, headings []heading) { func print_children_recursive(heading *heading, headings []heading) { for index, _ := range headings { if headings[index].parent == heading { - fmt.Printf("Child of parent %p: %s\n", heading, headings[index].text) + fmt.Printf("Child of parent %p: %s (%p)\n", heading, headings[index].text, &headings[index]) print_children_recursive(&headings[index], headings) } }