From 8e6ce0b1dfa0ed02f31bfc26ac3c647928533174 Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:10:31 +0100 Subject: [PATCH] chore: fixup Signed-off-by: moul <94029+moul@users.noreply.github.com> --- examples/gno.land/p/demo/avl/pager/pager.gno | 2 +- examples/gno.land/p/demo/avl/rotree/rotree.gno | 4 ++-- examples/gno.land/p/demo/avl/tree.gno | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/gno.land/p/demo/avl/pager/pager.gno b/examples/gno.land/p/demo/avl/pager/pager.gno index 91009c8e36c..d229ab17d5e 100644 --- a/examples/gno.land/p/demo/avl/pager/pager.gno +++ b/examples/gno.land/p/demo/avl/pager/pager.gno @@ -11,7 +11,7 @@ import ( // Pager is a struct that holds the AVL tree and pagination parameters. type Pager struct { - Tree avl.TreeInterface + Tree avl.ITree PageQueryParam string SizeQueryParam string DefaultPageSize int diff --git a/examples/gno.land/p/demo/avl/rotree/rotree.gno b/examples/gno.land/p/demo/avl/rotree/rotree.gno index 5d4818d112a..3e093c4d0e0 100644 --- a/examples/gno.land/p/demo/avl/rotree/rotree.gno +++ b/examples/gno.land/p/demo/avl/rotree/rotree.gno @@ -82,8 +82,8 @@ type ReadOnlyTree struct { makeEntrySafeFn func(interface{}) interface{} } -// Verify that ReadOnlyTree implements TreeInterface -var _ avl.TreeInterface = (*ReadOnlyTree)(nil) +// Verify that ReadOnlyTree implements ITree +var _ avl.ITree = (*ReadOnlyTree)(nil) // getSafeValue applies the makeEntrySafeFn if it exists, otherwise returns the original value func (roTree *ReadOnlyTree) getSafeValue(value interface{}) interface{} { diff --git a/examples/gno.land/p/demo/avl/tree.gno b/examples/gno.land/p/demo/avl/tree.gno index 3cc785b7caf..3834246d2cd 100644 --- a/examples/gno.land/p/demo/avl/tree.gno +++ b/examples/gno.land/p/demo/avl/tree.gno @@ -1,6 +1,6 @@ package avl -type TreeInterface interface { +type ITree interface { // read operations Size() int @@ -121,4 +121,4 @@ func (tree *Tree) ReverseIterateByOffset(offset int, count int, cb IterCbFn) boo } // Verify that Tree implements TreeInterface -var _ TreeInterface = (*Tree)(nil) +var _ ITree = (*Tree)(nil)