From 8471b88deabdec8e20359b75dfcabcf4220addc6 Mon Sep 17 00:00:00 2001 From: bluewebgeek Date: Tue, 19 Jun 2018 08:02:22 +0800 Subject: [PATCH] console: correct typo and add comments --- console/console.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/console/console.go b/console/console.go index b280d4e65d..3428fa244e 100644 --- a/console/console.go +++ b/console/console.go @@ -31,7 +31,6 @@ import ( "github.com/ethereum/go-ethereum/internal/jsre" "github.com/ethereum/go-ethereum/internal/web3ext" "github.com/ethereum/go-ethereum/rpc" - "github.com/mattn/go-colorable" "github.com/peterh/liner" "github.com/robertkrimen/otto" ) @@ -73,6 +72,8 @@ type Console struct { printer io.Writer // Output writer to serialize any display strings to } +// New initializes a JavaScript interpreted runtime environment and sets defaults +// with the config struct. func New(config Config) (*Console, error) { // Handle unset config values gracefully if config.Prompter == nil {