Skip to content

Commit

Permalink
Fix choose directive jsdoc example code (#2388)
Browse files Browse the repository at this point in the history

Co-authored-by: Andrew Jakubowicz <ajakubowicz@google.com>
  • Loading branch information
AndrewJakubowicz and AndrewJakubowicz committed Jan 6, 2022
1 parent 0fceece commit 5860533
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-buckets-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'lit-html': patch
---

Fix choose directive jsdoc code example.
6 changes: 3 additions & 3 deletions packages/lit-html/src/directives/choose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
* render() {
* return html`
* ${choose(this.section, [
* ['home', () => <h1>Home</h1>]
* ['about', () => <h1>About</h1>]
* ['home', () => html`<h1>Home</h1>`],
* ['about', () => html`<h1>About</h1>`]
* ],
* () => html`<h1>Error</h1>)}
* () => html`<h1>Error</h1>`)}
* `;
* }
* ```
Expand Down

0 comments on commit 5860533

Please sign in to comment.