diff --git a/docs/dev/04-public-api.md b/docs/dev/04-public-api.md index 6c4e580fe..17e6b8115 100644 --- a/docs/dev/04-public-api.md +++ b/docs/dev/04-public-api.md @@ -126,7 +126,7 @@ This function will signal a running server to stop. The equivalent of `karma st ```javascript var stopper = require('karma').stopper -runner.stop({port: 9876}, function(exitCode) { +stopper.stop({port: 9876}, function(exitCode) { if (exitCode === 0) { console.log('Server stop as initiated') } @@ -136,4 +136,4 @@ runner.stop({port: 9876}, function(exitCode) { ## Callback function notes -- If there is an error, the error code will be provided as the second parameter to the error callback. \ No newline at end of file +- If there is an error, the error code will be provided as the second parameter to the error callback.