Index: src/pkg/go/doc/example.go |
=================================================================== |
--- a/src/pkg/go/doc/example.go |
+++ b/src/pkg/go/doc/example.go |
@@ -33,8 +33,11 @@ |
continue |
} |
examples = append(examples, &Example{ |
- Name: name[len("Example"):], |
- Body: &printer.CommentedNode{f.Body, src.Comments}, |
+ Name: name[len("Example"):], |
+ Body: &printer.CommentedNode{ |
+ Node: f.Body, |
+ Comments: src.Comments, |
+ }, |
Output: f.Doc.Text(), |
}) |
} |