Skip to content

Commit

Permalink
fix: bad index
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxuanbao committed Jan 27, 2024
1 parent 6cb38df commit 5ac7a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func main() {
nextPosition := getNextPosition(Position{x, y})

fmt.Fprintf(w, `
<div id="dot-demo" class="dot smooth" style="top:%[1n]dpx;left:%[2]dpx;"
<div id="dot-demo" class="dot smooth" style="top:%[1]dpx;left:%[2]dpx;"
hx-get="/square?x=%[1]d&y=%[2]d" hx-swap="outerHTML" hx-trigger="every 2s"></div>
`, nextPosition.x, nextPosition.y)
})
Expand Down

0 comments on commit 5ac7a71

Please sign in to comment.