Skip to content

Commit f8d6a8c

Browse files
authored
Fix: Typo update on overview.mdx
Now the import is called `helloWorld` instead of `helloWorldTask` to be consistent with the filename as requested
1 parent 541e17a commit f8d6a8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tasks/overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ You can trigger this in two ways:
3333
Here's how to trigger a single run from elsewhere in your code:
3434

3535
```ts Your backend code
36-
import { helloWorldTask } from "./trigger/hello-world";
36+
import { helloWorld } from "./trigger/hello-world";
3737

3838
async function triggerHelloWorld() {
3939
//This triggers the task and returns a handle
40-
const handle = await helloWorldTask.trigger({ message: "Hello world!" });
40+
const handle = await helloWorld.trigger({ message: "Hello world!" });
4141

4242
//You can use the handle to check the status of the task, cancel and retry it.
4343
console.log("Task is running with handle", handle.id);

0 commit comments

Comments
 (0)