Skip to content

Commit

Permalink
Clean up more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kirsle committed Dec 9, 2016
1 parent 2b91b22 commit e57563f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ string literal to the `RiveScript.SetUnicodePunctuation` function. Example:

```go
// Make a new bot with UTF-8 mode enabled.
bot := rivescript.New()
bot.SetUTF8(true)
bot := rivescript.New(config.UTF8())

// Override the punctuation characters that get stripped from the
// user's message.
Expand Down Expand Up @@ -251,6 +250,9 @@ The distributable directory contains only the following types of files:
code and returning an "abstract syntax tree."
* [rivescript-go/macro](./macro) - Contains an interface for creating your own
object macro handlers for foreign programming languages.
* [rivescript-go/sessions](./sessions) - Contains the interface for user
variable session managers as well as the default in-memory manager and the
`NullStore` for testing.

## License

Expand Down
3 changes: 1 addition & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ set being `/[.,!?;:]/g`. This can be overridden by providing a new regexp
string literal to the `RiveScript.SetUnicodePunctuation` function. Example:
// Make a new bot with UTF-8 mode enabled.
bot := rivescript.New()
bot.SetUTF8(true)
bot := rivescript.New(config.UTF8())
// Override the punctuation characters that get stripped from the
// user's message.
Expand Down
3 changes: 1 addition & 2 deletions lang/javascript/javascript.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Usage is simple. In your Golang code:
)
func main() {
bot := rivescript.New()
bot := rivescript.New(nil)
jsHandler := javascript.New(bot)
bot.SetHandler("javascript", jsHandler)
Expand Down Expand Up @@ -51,7 +51,6 @@ import (
"fmt"
"strings"

"github.com/aichaos/rivescript-go"
"github.com/robertkrimen/otto"
)

Expand Down

0 comments on commit e57563f

Please sign in to comment.