From c6ade84e73b196f886f452f67ccdf801ae035775 Mon Sep 17 00:00:00 2001 From: Kwang Yul Seo Date: Sat, 11 Jul 2015 15:46:46 +0900 Subject: [PATCH] Fix documentation `srt(language, fileName, callback)` takes languages before fileName. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0fa79d4..95a6b2e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Make sure your subtitle files comply with the [SubRip file format][3] var srt = require("srt") - srt(fileName, "en", function (err, data) { + srt("en", fileName, function (err, data) { /* data looks like [ { @@ -102,4 +102,4 @@ The file in the above example contained [1]: https://secure.travis-ci.org/Colingo/srt-parser.png [2]: http://travis-ci.org/Colingo/srt-parser - [3]: http://en.wikipedia.org/wiki/SubRip \ No newline at end of file + [3]: http://en.wikipedia.org/wiki/SubRip