Skip to content

Commit

Permalink
Update the new examples in README.md to have syntax highlighting
Browse files Browse the repository at this point in the history
Signed-off-by: Lilis Iskandar <[email protected]>
  • Loading branch information
veeableful committed Mar 23, 2024
1 parent b7d4211 commit 3e01aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func main() {
```

There are two ways a game might be running: one that updates on user input and one that updates regardless of user input. The following example updates on user input:
```
```go
package main

import "github.com/veandco/go-sdl2/sdl"
Expand Down Expand Up @@ -288,7 +288,7 @@ func draw(window *sdl.Window, surface *sdl.Surface) {
```

And this one updates many times per second regardless of user input according to the desired framerate:
```
```go
package main

import "github.com/veandco/go-sdl2/sdl"
Expand Down

0 comments on commit 3e01aab

Please sign in to comment.