From 28549f676e040c96bfae575535dea7e0ecdf0f41 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 11 Feb 2023 22:15:41 -0700 Subject: Change how constants are declared to play nice with godoc Switch to NAME Type = val instead of NAME = Type(val) --- lib/containers/rbtree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/containers') diff --git a/lib/containers/rbtree.go b/lib/containers/rbtree.go index 4125847..6182150 100644 --- a/lib/containers/rbtree.go +++ b/lib/containers/rbtree.go @@ -12,8 +12,8 @@ import ( type Color bool const ( - Black = Color(false) - Red = Color(true) + Black Color = false + Red Color = true ) type RBNode[T Ordered[T]] struct { -- cgit v1.2.3-2-g168b