=act fix typo in ByteString#take error message (#21366)
This commit is contained in:
parent
b9a05aff96
commit
95d13d4771
1 changed files with 1 additions and 1 deletions
|
|
@ -561,7 +561,7 @@ sealed abstract class ByteString extends IndexedSeq[Byte] with IndexedSeqOptimiz
|
|||
override def init: ByteString = dropRight(1)
|
||||
|
||||
// *must* be overridden by derived classes.
|
||||
override def take(n: Int): ByteString = throw new UnsupportedOperationException("Method slice is not implemented in ByteString")
|
||||
override def take(n: Int): ByteString = throw new UnsupportedOperationException("Method take is not implemented in ByteString")
|
||||
override def takeRight(n: Int): ByteString = slice(length - n, length)
|
||||
|
||||
// these methods are optimized in derived classes utilising the maximum knowlage about data layout available to them:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue