Skip to content

Commit 484a77e

Browse files
committed
chore: update docs
1 parent 8dd80ed commit 484a77e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ addRoute(router, "GET", "/path/foo/**:name", {
9999
**Match route to access matched data:**
100100

101101
```js
102-
// Returns { payload: 'this path' }
102+
// Returns [{ payload: 'this path' }]
103103
findRoute(router, "GET", "/path");
104104

105-
// Returns { payload: 'named route', params: { name: 'fooval' } }
105+
// Returns [{ payload: 'named route', params: { name: 'fooval' } }]
106106
findRoute(router, "POST", "/path/fooval");
107107

108-
// Returns { payload: 'wildcard route' }
108+
// Returns [{ payload: 'wildcard route' }]
109109
findRoute(router, "GET", "/path/foo/bar/baz");
110110

111111
// Returns undefined (no route matched for/)

0 commit comments

Comments
 (0)