From d47760d44bd54342708697e2a2eca6ae9b8c5276 Mon Sep 17 00:00:00 2001 From: Takuya Asano Date: Sat, 27 Dec 2014 13:44:52 +0900 Subject: [PATCH] chore: modify example code description in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f074b96..913cc6af 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Load this library as follows: You can prepare tokenizer like this: - kuromoji.builder({ dicPath: "path/to/dictionary/dir/" }).build(function (tokenizer) { + kuromoji.builder({ dicPath: "path/to/dictionary/dir/" }).build(function (err, tokenizer) { // tokenizer is ready var path = tokenizer.tokenize("すもももももももものうち"); console.log(path); @@ -74,7 +74,7 @@ In your HTML: In your JavaScript: - kuromoji.builder({ dicPath: "/url/to/dictionary/dir/" }).build(function (tokenizer) { + kuromoji.builder({ dicPath: "/url/to/dictionary/dir/" }).build(function (err, tokenizer) { // tokenizer is ready var path = tokenizer.tokenize("すもももももももものうち"); console.log(path);