Permalink
Browse files

doc: Change usage of reserved word `static` in guide (#829)

Very minor, but I think `static` is a reserved word so it might be better to use `serve` instead, I think that's what `koa-static` uses in its examples as well.
  • Loading branch information...
1 parent a293cc2 commit c62aa90e6effabb95189969eab9df71651243122 @saadq saadq committed with juliangruber Oct 10, 2016
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/guide.md
View
@@ -256,16 +256,16 @@ $ DEBUG=koa* node --harmony examples/simple
```js
var path = require('path');
-var static = require('koa-static');
+var serve = require('koa-static');
-var publicFiles = static(path.join(__dirname, 'public'));
-publicFiles._name = 'static /public';
+var publicFiles = serve(path.join(__dirname, 'public'));
+publicFiles._name = 'serve /public';
app.use(publicFiles);
```
- Now, instead of just seeing "static" when debugging, you will see:
+ Now, instead of just seeing "serve" when debugging, you will see:
```
- koa:application use static /public +0ms
+ koa:application use serve /public +0ms
```

0 comments on commit c62aa90

Please sign in to comment.