From 03ee5b7f99c46921a84fad8a4e5967ae623c1d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0brahim=20Turan?= Date: Mon, 23 Oct 2023 21:05:53 +0300 Subject: [PATCH] Fix typo in `@lit/task` example code (#1238) --- packages/lit-dev-content/site/docs/v3/data/task.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/lit-dev-content/site/docs/v3/data/task.md b/packages/lit-dev-content/site/docs/v3/data/task.md index 189100b36..d33edfed0 100644 --- a/packages/lit-dev-content/site/docs/v3/data/task.md +++ b/packages/lit-dev-content/site/docs/v3/data/task.md @@ -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: () => [] } ); @@ -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: () => [] } );