Merge pull request #6992 from influxdata/dom/rename

refactor: SequenceNumberSet::as_bytes -> to_bytes
pull/24376/head
Dom 2023-02-15 11:15:16 +00:00 committed by GitHub
commit ff6499cf9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ impl SequenceNumberSet {
self.0.andnot_inplace(&other.0)
}
/// Serialise `self` into a set of bytes.
/// Serialise `self` into an array of bytes.
///
/// [This document][spec] describes the serialised format.
///
/// [spec]: https://github.com/RoaringBitmap/RoaringFormatSpec/
pub fn as_bytes(&self) -> Vec<u8> {
pub fn to_bytes(&self) -> Vec<u8> {
self.0.serialize()
}