From fd2d96adfc71147d5685af273d23ead22830e02e Mon Sep 17 00:00:00 2001 From: Walter Werner SCHNEIDER Date: Thu, 17 Dec 2020 05:51:23 +0200 Subject: [PATCH] all: fix spelling errors Signed-off-by: Walter Werner SCHNEIDER Signed-off-by: Elias Naur --- cmd/gogio/android_test.go | 2 +- f32/affine.go | 2 +- gpu/stroke.go | 4 ++-- internal/rendertest/bench_test.go | 2 +- internal/rendertest/clip_test.go | 2 +- .../rendertest/refs/TestPaintClippedCircle.png | Bin 0 -> 571 bytes internal/rendertest/render_test.go | 2 +- layout/list.go | 2 +- widget/enum.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 internal/rendertest/refs/TestPaintClippedCircle.png diff --git a/cmd/gogio/android_test.go b/cmd/gogio/android_test.go index 6608188d..e73386f9 100644 --- a/cmd/gogio/android_test.go +++ b/cmd/gogio/android_test.go @@ -78,7 +78,7 @@ func (d *AndroidTestDriver) Start(path string) { cmd := exec.CommandContext(ctx, d.adbPath, "logcat", "-s", // suppress other logs - "-T1", // don't show prevoius log messages + "-T1", // don't show previous log messages appid+":*", // show all logs from our gio app ID ) output, err := cmd.StdoutPipe() diff --git a/f32/affine.go b/f32/affine.go index e2a759eb..667f7e98 100644 --- a/f32/affine.go +++ b/f32/affine.go @@ -12,7 +12,7 @@ import ( type Affine2D struct { // in order to make the zero value of Affine2D represent the identity // transform we store it with the identity matrix subtracted, that is - // if the actual transformaiton matrix is: + // if the actual transformation matrix is: // [sx, hx, ox] // [hy, sy, oy] // [ 0, 0, 1] diff --git a/gpu/stroke.go b/gpu/stroke.go index 785acff0..ca37e59b 100644 --- a/gpu/stroke.go +++ b/gpu/stroke.go @@ -500,14 +500,14 @@ func strokePathRoundJoin(rhs, lhs *strokeQuads, hw float32, pivot, n0, n1 f32.Po c := pivot.Sub(lhs.pen()) angle := -math.Acos(float64(cosPt(n0, n1))) lhs.arc(c, c, float32(angle)) - lhs.lineTo(lp) // Add a line to accomodate for rounding errors. + lhs.lineTo(lp) // Add a line to accommodate for rounding errors. rhs.lineTo(rp) default: // Path bends to the left, ie. CCW. angle := math.Acos(float64(cosPt(n0, n1))) c := pivot.Sub(rhs.pen()) rhs.arc(c, c, float32(angle)) - rhs.lineTo(rp) // Add a line to accomodate for rounding errors. + rhs.lineTo(rp) // Add a line to accommodate for rounding errors. lhs.lineTo(lp) } } diff --git a/internal/rendertest/bench_test.go b/internal/rendertest/bench_test.go index b9efb424..498bed5c 100644 --- a/internal/rendertest/bench_test.go +++ b/internal/rendertest/bench_test.go @@ -57,7 +57,7 @@ func finishBenchmark(b *testing.B, w *headless.Window) { } func BenchmarkDrawUICached(b *testing.B) { - // As BecnhmarkDraw but the same op.Ops every time that is not reset - this + // As BenchmarkDraw but the same op.Ops every time that is not reset - this // should thus allow for maximal cache usage. gtx, w, th := setupBenchmark(b) drawCore(gtx, th) diff --git a/internal/rendertest/clip_test.go b/internal/rendertest/clip_test.go index 29cb8a33..9c339aa8 100644 --- a/internal/rendertest/clip_test.go +++ b/internal/rendertest/clip_test.go @@ -59,7 +59,7 @@ func TestPaintClippedBorder(t *testing.T) { }) } -func TestPaintClippedCirle(t *testing.T) { +func TestPaintClippedCircle(t *testing.T) { run(t, func(o *op.Ops) { r := float32(10) clip.RRect{Rect: f32.Rect(20, 20, 40, 40), SE: r, SW: r, NW: r, NE: r}.Add(o) diff --git a/internal/rendertest/refs/TestPaintClippedCircle.png b/internal/rendertest/refs/TestPaintClippedCircle.png new file mode 100644 index 0000000000000000000000000000000000000000..9aa298e91a2e29d0f32ea857d01462be7a8e13c2 GIT binary patch literal 571 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1SEZ8zRh7^U}ExgaSW-L^X8V}sYd}K4i9HP zynjw#?A9*Mzzc70>=0rt6&H(IVidJ&vPav?WiuqFls`PM=kwOa<3|sBA2NUV zu)y+Qo#~w3SJfX&K3E^WK=ZHOiq}adzdoz(x2STy$@k*-jhstqD}!$GW!#?O_rL0@ z?1#2ZvKO{xHeXq#bD(a%naA2wd5*rH*RQ_UbnihR%Nm^nInzLbOl!g*YEmYFxjn}> zMl3lSq}s2Pa5UfX{{2FmXJ>+z_FTX4(}u6TrF7L4!3CLhww!s}Bi0Ltt@in7{Gfb& z_?`FvRDVvq!tiU3yPyH{0UicphBFL9mhoGXf#LuEH{F36y}?FPfQf>^)78&qol`;+ E06tdIp#T5? literal 0 HcmV?d00001 diff --git a/internal/rendertest/render_test.go b/internal/rendertest/render_test.go index 58a8bd2a..87678a20 100644 --- a/internal/rendertest/render_test.go +++ b/internal/rendertest/render_test.go @@ -85,7 +85,7 @@ func TestRepeatedPaintsZ(t *testing.T) { } func TestNoClipFromPaint(t *testing.T) { - // ensure that a paint operation does not polute the state + // ensure that a paint operation does not pollute the state // by leaving any clip paths in place. run(t, func(o *op.Ops) { a := f32.Affine2D{}.Rotate(f32.Pt(20, 20), math.Pi/4) diff --git a/layout/list.go b/layout/list.go index 2375feae..4463e0a0 100644 --- a/layout/list.go +++ b/layout/list.go @@ -35,7 +35,7 @@ type List struct { // Position is updated during Layout. To save the list scroll position, // just save Position after Layout finishes. To scroll the list - // programatically, update Position (e.g. restore it from a saved value) + // programmatically, update Position (e.g. restore it from a saved value) // before calling Layout. Position Position diff --git a/widget/enum.go b/widget/enum.go index b4e82a0a..442000e9 100644 --- a/widget/enum.go +++ b/widget/enum.go @@ -27,7 +27,7 @@ func index(vs []string, t string) int { return -1 } -// Changed reports whether Value has changed by user interactino since the last +// Changed reports whether Value has changed by user interaction since the last // call to Changed. func (e *Enum) Changed() bool { changed := e.changed