From d906dc3a216b9c443a98ac270c4d4fdce674d793 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 13 Jan 2024 17:42:51 +0900 Subject: [PATCH] internal/packing: rename a function --- internal/packing/packing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/packing/packing.go b/internal/packing/packing.go index cbd55774c..1d9a5f36f 100644 --- a/internal/packing/packing.go +++ b/internal/packing/packing.go @@ -172,7 +172,7 @@ func (p *Page) Alloc(width, height int) *Node { region: image.Rect(0, 0, p.width, p.height), } } - return p.extendForAndAlloc(width, height) + return p.extendAndAlloc(width, height) } func (p *Page) Free(node *Node) { @@ -210,7 +210,7 @@ func walk(n *Node, f func(n *Node) error) error { return nil } -func (p *Page) extendForAndAlloc(width, height int) *Node { +func (p *Page) extendAndAlloc(width, height int) *Node { if n := alloc(p.root, width, height); n != nil { return n }