From c50447827cff92d34d2aecb5f26815e6781f1cd3 Mon Sep 17 00:00:00 2001 From: Thomas Friedel Date: Mon, 30 Apr 2018 12:10:18 +0200 Subject: [PATCH] fixed doc --- paths.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paths.go b/paths.go index 40fafa9..d646280 100644 --- a/paths.go +++ b/paths.go @@ -669,7 +669,7 @@ func (cv *Canvas) Rect(x, y, w, h float64) { cv.polyPath[len(cv.polyPath)-1].flags |= pathIsRect } -// Rect creates a closed rectangle path for stroking or filling +// StrokeRect draws a rectangle using the current stroke style func (cv *Canvas) StrokeRect(x, y, w, h float64) { v0 := vec{x, y} v1 := vec{x + w, y}