From e24489d33c89f9d924f9de8f5a627ea4817e7d9e Mon Sep 17 00:00:00 2001
From: Pavel Karpy <carpawell@nspcc.ru>
Date: Mon, 9 Aug 2021 17:44:07 +0300
Subject: [PATCH] [#770] pkg/morph: Fix commentaries for `Listener` interface

Refactor comments so they start with the names of
methods.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
---
 pkg/morph/event/listener.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pkg/morph/event/listener.go b/pkg/morph/event/listener.go
index 1377ab21c2..32e9d945a6 100644
--- a/pkg/morph/event/listener.go
+++ b/pkg/morph/event/listener.go
@@ -16,12 +16,12 @@ import (
 
 // Listener is an interface of smart contract notification event listener.
 type Listener interface {
-	// Must start the event listener.
+	// Listen must start the event listener.
 	//
 	// Must listen to events with the parser installed.
 	Listen(context.Context)
 
-	// Must start the event listener.
+	// ListenWithError must start the event listener.
 	//
 	// Must listen to events with the parser installed.
 	//
@@ -29,24 +29,24 @@ type Listener interface {
 	// it could not be started.
 	ListenWithError(context.Context, chan<- error)
 
-	// Must set the parser of particular contract event.
+	// SetParser must set the parser of particular contract event.
 	//
 	// Parser of each event must be set once. All parsers must be set before Listen call.
 	//
 	// Must ignore nil parsers and all calls after listener has been started.
 	SetParser(ParserInfo)
 
-	// Must register the event handler for particular notification event of contract.
+	// RegisterHandler must register the event handler for particular notification event of contract.
 	//
 	// The specified handler must be called after each capture and parsing of the event
 	//
 	// Must ignore nil handlers.
 	RegisterHandler(HandlerInfo)
 
-	// Must stop the event listener.
+	// Stop must stop the event listener.
 	Stop()
 
-	// Must register chain block handler.
+	// RegisterBlockHandler must register chain block handler.
 	//
 	// The specified handler must be called after each capture and parsing of the new block from chain.
 	//