From 371acf3934882c2cd182c5cea43c1c50895c3998 Mon Sep 17 00:00:00 2001 From: Stanislav Kutyepov Date: Thu, 1 Aug 2019 21:15:13 -0400 Subject: [PATCH] docs: fixed typos in plugins' example --- README.md | 6 +++--- src/index.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1475da9..178c30f 100644 --- a/README.md +++ b/README.md @@ -471,11 +471,11 @@ import { plugins, applyPlugins, parse } from 'parse-commit-message'; console.log(plugins); // => [mentions, increment] console.log(plugins[0]); // => [Function mentions] -console.log(plugins[0]); // => [Function increment] +console.log(plugins[1]); // => [Function increment] const cmts = parse([ 'fix: foo @bar @qux haha', - 'feat(cli): awesome @tunnckoCore feature\n\nSuper duper baz!' + 'feat(cli): awesome @tunnckoCore feature\n\nSuper duper baz!', 'fix: ooh\n\nBREAKING CHANGE: some awful api change' ]); @@ -885,4 +885,4 @@ Released under the [Apache-2.0 License][license-url]. [new-release]: https://github.com/tunnckoCore/new-release [parse-commit-message]: https://github.com/tunnckoCoreLabs/parse-commit-message [recommended-bump]: https://github.com/tunnckoCoreLabs/recommended-bump -[semantic-release]: https://github.com/semantic-release/semantic-release \ No newline at end of file +[semantic-release]: https://github.com/semantic-release/semantic-release diff --git a/src/index.js b/src/index.js index c5d9271..ffb70a7 100644 --- a/src/index.js +++ b/src/index.js @@ -107,11 +107,11 @@ export function applyPlugins(plugins, commits) { * * console.log(plugins); // => [mentions, increment] * console.log(plugins[0]); // => [Function mentions] - * console.log(plugins[0]); // => [Function increment] + * console.log(plugins[1]); // => [Function increment] * * const cmts = parse([ * 'fix: foo @bar @qux haha', - * 'feat(cli): awesome @tunnckoCore feature\n\nSuper duper baz!' + * 'feat(cli): awesome @tunnckoCore feature\n\nSuper duper baz!', * 'fix: ooh\n\nBREAKING CHANGE: some awful api change' * ]); *