Skip to content

Commit

Permalink
Merge pull request #21 from Caiofcas/main
Browse files Browse the repository at this point in the history
A few small typos
  • Loading branch information
jonegil authored Jul 12, 2022
2 parents c42ca2f + b16708c commit 46ec6df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion egg_timer/01_empty_window.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The code looks simple enough, right? Still, let's take the time to to look at wh
}()
```

Jeremy Bytes [writes well about anonymous functions](https://jeremybytes.blogspot.com/2021/02/go-golang-anonymous-functions-inlining.html). They're useful in many contexts, not only with Gio.
Jeremy Bytes [writes well about anonymous functions](https://jeremybytes.blogspot.com/2021/02/go-golang-anonymous-functions-inlining.html). They're useful in many contexts, not only with Gio.

3. Start it by calling `app.Main()`
From [app.Main documentation](https://pkg.go.dev/gioui.org/app#hdr-Main):
Expand Down
2 changes: 1 addition & 1 deletion egg_timer/05_button_low_refactored.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func draw(w *app.Window) error {

As before we range through `w.Events()`, detecting their type.

- `system.FramEvent` is handled as before,
- `system.FrameEvent` is handled as before,
- we add a new case for `system.DestroyEvent`, which returns _nil_ for normal window closures, but _Err_ if something else is the cause.

## Comments
Expand Down
2 changes: 1 addition & 1 deletion egg_timer/06_button_low_margin.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ layout.Flex{
layout.Rigid(
func(gtx C) D {
// ONE: First define margins around the button using layout.Inset ...
margin := layout.Inset{
margins := layout.Inset{
// ...
}

Expand Down
2 changes: 1 addition & 1 deletion egg_timer/09_egg_as_egg.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ layout.Rigid(
x := a * cosT
y := -(math.Sqrt(b*b-d*d*cosT*cosT) + d*sinT) * sinT
// Finally the point on the outline
p := image.Pt(x, y)
p := f32.Pt(float32(x), float32(y))
// Draw the line to this point
eggPath.LineTo(p)
}
Expand Down

0 comments on commit 46ec6df

Please sign in to comment.