Skip to content

Commit 878670b

Browse files
committed
typo and minor phrasing
1 parent c1b954b commit 878670b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/blog/tanstack-router-route-matching-tree-rewrite.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ root
3131
└── $id => match /users/$id
3232
```
3333

34-
We can add more routes to get a complete picture:
34+
Adding more routes gives a more complete picture:
3535

3636
```
3737
/users/$id
@@ -153,7 +153,7 @@ When building the segment trie, we need to parse each route (e.g., `/users/$user
153153

154154
Instead of re-creating a new object every time, we can reuse the same object across all parsing operations to avoid allocations in the hot path.
155155

156-
```tsx
156+
```ts
157157
const data = { kind: 0, prefixEnd: 0, suffixStart: 0, nextCursor: 0 }
158158
do {
159159
parseSegment(path, data)

0 commit comments

Comments
 (0)