console: correct typo and add comments

This commit is contained in:
bluewebgeek 2018-06-19 08:03:21 +08:00
parent 8471b88dea
commit 385f775884

View file

@ -72,8 +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.
// 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 {