We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43cafe5 commit fed96e5Copy full SHA for fed96e5
core/buffer.go
@@ -251,7 +251,8 @@ func (b *Buffer) Mutable() bool {
251
return b.mutable
252
}
253
254
-func (b *Buffer) IsDestroyed() bool {
+// isDestroyed returns true if the buffer is destroyed
255
+func (b *Buffer) isDestroyed() bool {
256
b.RLock()
257
defer b.RUnlock()
258
return b.data == nil
core/coffer.go
@@ -178,5 +178,5 @@ func (s *Coffer) destroyed() bool {
178
return true
179
180
181
- return s.left.IsDestroyed() || s.right.IsDestroyed()
+ return s.left.isDestroyed() || s.right.isDestroyed()
182
0 commit comments