diff options
author | hackyminer <hackyminer@gmail.com> | 2018-08-18 05:07:20 +0800 |
---|---|---|
committer | hackyminer <hackyminer@gmail.com> | 2018-08-18 06:47:10 +0800 |
commit | 0fd02fe9cff54a5edce87588ed780c76a95329fd (patch) | |
tree | 69c81dd21a53a310b32d176454c8d098f9dc39d1 | |
parent | 99e1a5e0fb6f238319042dd2c4c8468dc786a4b7 (diff) | |
download | dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.tar dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.tar.gz dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.tar.bz2 dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.tar.lz dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.tar.xz dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.tar.zst dexon-0fd02fe9cff54a5edce87588ed780c76a95329fd.zip |
console: fixed comment typo
-rw-r--r-- | console/console.go | 2 | ||||
-rw-r--r-- | console/console_test.go | 8 | ||||
-rw-r--r-- | console/prompter.go | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/console/console.go b/console/console.go index 56e03837a..3c397f800 100644 --- a/console/console.go +++ b/console/console.go @@ -314,7 +314,7 @@ func (c *Console) Interactive() { input = "" // Current user input scheduler = make(chan string) // Channel to send the next prompt on and receive the input ) - // Start a goroutine to listen for promt requests and send back inputs + // Start a goroutine to listen for prompt requests and send back inputs go func() { for { // Read the next user input diff --git a/console/console_test.go b/console/console_test.go index 7b1629c03..26465ca6f 100644 --- a/console/console_test.go +++ b/console/console_test.go @@ -201,7 +201,7 @@ func TestInteractive(t *testing.T) { go tester.console.Interactive() - // Wait for a promt and send a statement back + // Wait for a prompt and send a statement back select { case <-tester.input.scheduler: case <-time.After(time.Second): @@ -212,7 +212,7 @@ func TestInteractive(t *testing.T) { case <-time.After(time.Second): t.Fatalf("input feedback timeout") } - // Wait for the second promt and ensure first statement was evaluated + // Wait for the second prompt and ensure first statement was evaluated select { case <-tester.input.scheduler: case <-time.After(time.Second): @@ -249,7 +249,7 @@ func TestExecute(t *testing.T) { } // Tests that the JavaScript objects returned by statement executions are properly -// pretty printed instead of just displaing "[object]". +// pretty printed instead of just displaying "[object]". func TestPrettyPrint(t *testing.T) { tester := newTester(t, nil) defer tester.Close(t) @@ -300,7 +300,7 @@ func TestIndenting(t *testing.T) { }{ {`var a = 1;`, 0}, {`"some string"`, 0}, - {`"some string with (parentesis`, 0}, + {`"some string with (parenthesis`, 0}, {`"some string with newline ("`, 0}, {`function v(a,b) {}`, 0}, diff --git a/console/prompter.go b/console/prompter.go index c477b4817..9b90034db 100644 --- a/console/prompter.go +++ b/console/prompter.go @@ -27,7 +27,7 @@ import ( // Only this reader may be used for input because it keeps an internal buffer. var Stdin = newTerminalPrompter() -// UserPrompter defines the methods needed by the console to promt the user for +// UserPrompter defines the methods needed by the console to prompt the user for // various types of inputs. type UserPrompter interface { // PromptInput displays the given prompt to the user and requests some textual |