Browse Source

chore: updates README.md

e22m4u 1 year ago
parent
commit
267fad2986
1 changed files with 3 additions and 3 deletions
  1. 3 3
      README.md

+ 3 - 3
README.md

@@ -207,15 +207,15 @@ called first.
 
 Global hooks can be added using the `addHook` method
 of a router instance, where the first parameter
-is the hook name, and the second is a function.
+is the hook name and the second is a function.
 
 ```js
 router.addHook('preHandler', (ctx) => {
-  // called before a route handler
+  // before a route handler
 });
 
 router.addHook('postHandler', (ctx, data) => {
-  // called after a route handler
+  // after a route handler
 });
 ```