summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjEzEk <[email protected]>2021-03-09 16:07:26 +0100
committerjEzEk <[email protected]>2021-03-09 16:07:26 +0100
commit6f5d8a2bd52dc6a4e877f0b3856ff2db429edf54 (patch)
tree18cb3f38cdd84a5e7a797ff99fe528fbef22e008
parent84e3375e08953a6b9f5b42b6358c34be7d701338 (diff)
Fix typos and reword comment
-rw-r--r--examples/shapes/main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/shapes/main.go b/examples/shapes/main.go
index ffc911d..2686d2e 100644
--- a/examples/shapes/main.go
+++ b/examples/shapes/main.go
@@ -1,8 +1,8 @@
// The shapes example shows how to draw basic shapes into a window.
-// It can be considered the Go aequivalent of
+// It can be considered the Go equivalent of
// https://x.org/releases/X11R7.5/doc/libxcb/tutorial/#drawingprim
// Four points, a single polyline, two line segments,
-// two rectangle and two arcs are drawn.
+// two rectangles and two arcs are drawn.
// In addition to this, we will also write some text
// and fill a rectangle.
package main
@@ -40,10 +40,9 @@ func main() {
// Up to here everything is the same as in the `create-window` example.
// We opened a connection, created and mapped the window.
+ // But this time we'll be drawing some basic shapes.
// Note how this time the border width is set to 8 instead of 0.
//
- // But this time we'll be drawing some basic shapes:
-
// First of all we need to create a context to draw with.
// The graphics context combines all properties (e.g. color, line width, font, fill style, ...)
// that should be used to draw something. All available properties
@@ -126,7 +125,7 @@ func main() {
{X: 40, Y: 10},
}
- // A polyline is essientially a line with multiple points.
+ // A polyline is essentially a line with multiple points.
// The first point is placed absolutely inside the window,
// while every other point is placed relative to the one before it.
polyline := []xproto.Point{