Skip to content

Commit

Permalink
Merge pull request #794 from matm/fix-go-docs-guides
Browse files Browse the repository at this point in the history
fix(doc): delete brackets and semicolons in Go snippet
  • Loading branch information
aduros authored Jan 2, 2025
2 parents fa5b273 + 3327787 commit 01765b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/docs/guides/basic-drawing.md
Original file line number Diff line number Diff line change
Expand Up @@ -444,11 +444,11 @@ func pixel (x int, y int) {

// Use the first DRAW_COLOR as the pixel color
var palette_color = uint8(*w4.DRAW_COLORS & 0b1111)
if (palette_color == 0) {
if palette_color == 0 {
// Transparent
return;
return
}
var color = uint8((palette_color - 1) & 0b11);
var color = uint8((palette_color - 1) & 0b11)

// Write to the framebuffer
w4.FRAMEBUFFER[idx] = (color << shift) | (w4.FRAMEBUFFER[idx] &^ mask)
Expand Down

0 comments on commit 01765b0

Please sign in to comment.