Addressed the comments and fixed the tests.

This commit is contained in:
Filip Barl
2017-02-17 14:21:53 +01:00
parent f1904a626f
commit 2e9255b190
15 changed files with 200 additions and 150 deletions

View File

@@ -146,9 +146,8 @@ func (ad applyDecorator) Stats(rpt report.Report, dct Decorator) Stats {
return Stats{}
}
// ApplyDecorators returns a renderer which will apply the given decorators
// to the child render.
func ApplyDecorators(renderer Renderer) Renderer {
// ApplyDecorator returns a renderer which will apply the given decorator to the child render.
func ApplyDecorator(renderer Renderer) Renderer {
return applyDecorator{renderer}
}