Skip to content

Commit

Permalink
Fix typo in /maths add
Browse files Browse the repository at this point in the history
Accidentally displayed 'first' twice, instead of 'second' the second
time. The calculation was done correctly already; this was a pure
display issue.
  • Loading branch information
MajorTanya committed Jul 31, 2023
1 parent 187aecb commit a3e9e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maths.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def add(self, interaction: discord.Interaction, first: float, second: floa
first = rint(first, digits=3)
second = rint(second, digits=3)
result = rint(first + second, digits=3)
await interaction.response.send_message(f"{first:,} + {first:,} = {result:,}")
await interaction.response.send_message(f"{first:,} + {second:,} = {result:,}")

@app_commands.command(description="Subtract two numbers")
async def subtract(self, interaction: discord.Interaction, first: float, second: float):
Expand Down

0 comments on commit a3e9e9e

Please sign in to comment.