From 968be5f0a34adb4024acbbdfa52d60f77bfef647 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Mon, 5 Jun 2023 12:51:24 +0200 Subject: [PATCH] chore: update comments --- shared/modules/factory.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/modules/factory.go b/shared/modules/factory.go index 58b4ef16ea..5cda020d84 100644 --- a/shared/modules/factory.go +++ b/shared/modules/factory.go @@ -17,16 +17,16 @@ type FactoryWithConfig[T interface{}, K interface{}] interface { Create(bus Bus, cfg K) (T, error) } -// FactoryWithOptions implements a `#Create()` factory method which takes a -// variadic "optional" argument(s) of type O and returns a value of type T +// FactoryWithOptions implements a `#Create()` factory method which takes a bus +// and a variadic "optional" argument(s) of type O and returns a value of type T // and an error. // TECHDEBT: apply enforcement across applicable "sub-modules" type FactoryWithOptions[T interface{}, O interface{}] interface { Create(bus Bus, opts ...O) (T, error) } -// FactoryWithConfigAndOptions implements a `#Create()` factory method which -// takes both a required "config" argument of type K and a variadic "optional" +// FactoryWithConfigAndOptions implements a `#Create()` factory method which takes +// a bus and both a required "config" argument of type K and a variadic "optional" // argument(s) of type O and returns a value of type T and an error. // TECHDEBT: apply enforcement across applicable "sub-modules" type FactoryWithConfigAndOptions[T interface{}, K interface{}, O interface{}] interface {