Skip to content

Commit fed96e5

Browse files
author
Your Name
committed
do not export isDestroyed() function
1 parent 43cafe5 commit fed96e5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/buffer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ func (b *Buffer) Mutable() bool {
251251
return b.mutable
252252
}
253253

254-
func (b *Buffer) IsDestroyed() bool {
254+
// isDestroyed returns true if the buffer is destroyed
255+
func (b *Buffer) isDestroyed() bool {
255256
b.RLock()
256257
defer b.RUnlock()
257258
return b.data == nil

core/coffer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,5 @@ func (s *Coffer) destroyed() bool {
178178
return true
179179
}
180180

181-
return s.left.IsDestroyed() || s.right.IsDestroyed()
181+
return s.left.isDestroyed() || s.right.isDestroyed()
182182
}

0 commit comments

Comments
 (0)