From 9548dbe901c132093354652336b510b6e7721c19 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 25 Oct 2021 11:19:44 +0200 Subject: [PATCH] internal/ops: rename StateOP to StateOp Signed-off-by: Elias Naur --- internal/ops/ops.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/ops/ops.go b/internal/ops/ops.go index 5b2a8928..e13bbe85 100644 --- a/internal/ops/ops.go +++ b/internal/ops/ops.go @@ -71,7 +71,7 @@ type StackID struct { // StateOp represents a saved operation snapshop to be restored // later. -type StateOP struct { +type StateOp struct { id int macroID int ops *Ops @@ -222,9 +222,9 @@ func (s *stack) pop(sid StackID) { } // Save the effective transformation. -func Save(o *Ops) StateOP { +func Save(o *Ops) StateOp { o.nextStateID++ - s := StateOP{ + s := StateOp{ ops: o, id: o.nextStateID, macroID: o.macroStack.currentID, @@ -238,7 +238,7 @@ func Save(o *Ops) StateOP { // load a previously saved operations state given // its ID. -func (s StateOP) Load() { +func (s StateOp) Load() { bo := binary.LittleEndian data := Write(s.ops, TypeLoadLen) data[0] = byte(TypeLoad)