Skip to content

Commit

Permalink
Fix typo in @lit/task example code (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
turanibrahim authored Oct 23, 2023
1 parent 3ebee1b commit 03ee5b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/lit-dev-content/site/docs/v3/data/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ class MyElement extends LitElement {
private _getDataTask = new Task(
this,
{
task: async () =>
task: async () => {
const response = await fetch(`example.com/data/`);
return response.json();
),
},
args: () => []
}
);
Expand All @@ -281,10 +281,10 @@ class MyElement extends LitElement {
_getDataTask = new Task(
this,
{
task: async () =>
task: async () => {
const response = await fetch(`example.com/data/`);
return response.json();
),
},
args: () => []
}
);
Expand Down

0 comments on commit 03ee5b7

Please sign in to comment.