Browse Source

Updated

pull/103/head
Unknown 12 years ago
parent
commit
65d9e6ca4f
  1. 3
      doc/walker.go

3
doc/walker.go

@ -154,6 +154,9 @@ func (w *walker) build(srcs []*source, nod *Node) ([]string, error) {
pdoc := doc.New(apkg, w.ImportPath, mode) pdoc := doc.New(apkg, w.ImportPath, mode)
nod.Synopsis = Synopsis(pdoc.Doc) nod.Synopsis = Synopsis(pdoc.Doc)
if i := strings.Index(nod.Synopsis, "\n"); i > -1 {
nod.Synopsis = nod.Synopsis[:i]
}
return imports, err return imports, err
} }

Loading…
Cancel
Save