Skip to content

Commit 081e107

Browse files
committed
docs: use indented code block for TypeScript code in lesson
- Changed inline backticks to 4-space indented code block - TypeScript code now renders as a proper code section with highlighting - Standard markdown code block syntax within the lesson
1 parent c286058 commit 081e107

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ writes) that's usually the wrong default.
2929

3030
Promise.allSettled always resolves, giving you a status for every promise:
3131

32-
`const results = await Promise.allSettled(ids.map(fetchUser));`
33-
`const ok = results.filter(r => r.status === "fulfilled").map(r => r.value);`
32+
const results = await Promise.allSettled(ids.map(fetchUser));
33+
const ok = results.filter(r => r.status === "fulfilled").map(r => r.value);
3434

3535
Use Promise.all when the tasks are genuinely all-or-nothing; reach for
3636
allSettled when partial success is meaningful and you want to report failures.

0 commit comments

Comments
 (0)