Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update toposort.js #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/toposort.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] );
Expand All @@ -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.
Expand Down