Skip to content

Commit 0745a00

Browse files
authored
fix(docs): fix stopper.stop wrong variable name. closes #2244
Was: ```js var stopper = require('karma').stopper runner.stop({port: 9876}, function(exitCode) { ``` Changed to : ```js var stopper = require('karma').stopper stopper.stop({port: 9876}, function(exitCode) { ```
1 parent e068fd2 commit 0745a00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/dev/04-public-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ This function will signal a running server to stop. The equivalent of `karma st
126126

127127
```javascript
128128
var stopper = require('karma').stopper
129-
runner.stop({port: 9876}, function(exitCode) {
129+
stopper.stop({port: 9876}, function(exitCode) {
130130
if (exitCode === 0) {
131131
console.log('Server stop as initiated')
132132
}
@@ -136,4 +136,4 @@ runner.stop({port: 9876}, function(exitCode) {
136136

137137
## Callback function notes
138138

139-
- If there is an error, the error code will be provided as the second parameter to the error callback.
139+
- If there is an error, the error code will be provided as the second parameter to the error callback.

0 commit comments

Comments
 (0)