Skip to content

Commit

Permalink
Update welcome.mdx so code on welcome page runs
Browse files Browse the repository at this point in the history
  • Loading branch information
discdiver authored Oct 22, 2024
1 parent 24dfbb4 commit 9bd2d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/welcome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import random

def roll_dice(num_dice: int) -> list[int]:
"""Roll multiple dice and return the results."""
return [random.randint(1, 6) for * in range(num_dice)]
return [random.randint(1, 6) for _ in range(num_dice)]

result = cf.run("Roll 3 dice and return the results", tools=[roll_dice])

Expand Down

0 comments on commit 9bd2d2b

Please sign in to comment.