From 06c1f318845476e282a793b7f5db52e6f1b3f8c2 Mon Sep 17 00:00:00 2001 From: King Date: Fri, 21 Jul 2023 07:21:25 +0100 Subject: [PATCH] Update toposort.js Fix grammatical error in error message --- build/toposort.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/toposort.js b/build/toposort.js index 616fee6..8984fe4 100644 --- a/build/toposort.js +++ b/build/toposort.js @@ -89,7 +89,7 @@ var dep = _ref; if( typeof dep !== "string" || !dep ) { - throw new TypeError( "Dependency name must be given as a not empty string" ); + throw new TypeError( "The dependency name must be provided as a non-empty string" ); } this.edges.push( [item, dep] ); @@ -102,7 +102,7 @@ }; /** - * Runs the toposorting and return an ordered array of strings + * Runs the toposorting and returns an ordered array of strings * * @since 0.1.0 * @returns {String[]} The list of items topologically sorted.