Skip to content

Commit

Permalink
Consistent spelling of ProTip
Browse files Browse the repository at this point in the history
  • Loading branch information
tigt committed Nov 9, 2022
1 parent 6416428 commit 08b582e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/marko/docs/core-tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The output HTML would be:
</ol>
```

> **Pro Tip**: `<for>`’s `of` attribute can loop over any iterable, just like JavaScript’s [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of). This includes strings, `NodeList`s, `Set`s… any object with zero-indexed numeric properties and a `.length`, basically.
> **ProTip**: `<for>`’s `of` attribute can loop over any iterable, just like JavaScript’s [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of). This includes strings, `NodeList`s, `Set`s… any object with zero-indexed numeric properties and a `.length`, basically.
### Iterating over an object’s properties

Expand Down Expand Up @@ -276,7 +276,7 @@ Regardless of these attributes, the promise is executed as eagerly as possible.

- `timeout` is useful for limiting non-critical content from slowing down the rest of the page too much.

> **Pro Tip**: When using `timeout`, you can distinguish between `TimeoutError`s and promise rejections by checking the error’s `name`:
> **ProTip**: When using `timeout`, you can distinguish between `TimeoutError`s and promise rejections by checking the error’s `name`:
>
> ```marko
> <await(slowPromise) timeout=5000>
Expand Down

0 comments on commit 08b582e

Please sign in to comment.