From f980170909e20194aa963469cba0b47a55d5b02e Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 17 Apr 2020 12:03:57 -0600 Subject: doc: Improve comment --- modules.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules.go') diff --git a/modules.go b/modules.go index 584a298..0f4a563 100644 --- a/modules.go +++ b/modules.go @@ -65,7 +65,12 @@ type ModuleInfo struct { // New returns a pointer to a new, empty // instance of the module's type. This - // function must not have any side-effects. + // method must not have any side-effects, + // and no other initialization should + // occur within it. Any initialization + // of the returned value should be done + // in a Provision() method (see the + // Provisioner interface). New func() Module } -- cgit v1.2.3