Skip to content

Commit 2cafa8c

Browse files
committed
Rename is_filled to is_full
1 parent 1c02b8a commit 2cafa8c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
- Added `format` macro.
1313
- Added `String::from_utf16`.
14-
- Added `is_filled`, `recent_index`, `oldest`, and `oldest_index` to `HistoryBuffer`
14+
- Added `is_full`, `recent_index`, `oldest`, and `oldest_index` to `HistoryBuffer`
1515

1616
### Changed
1717

src/histbuf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ impl<T, const N: usize> HistoryBuffer<T, N> {
141141
N
142142
}
143143

144-
/// Returns whether the buffer is filled
144+
/// Returns whether the buffer is full
145145
#[inline]
146-
pub fn is_filled(&self) -> bool {
146+
pub fn is_full(&self) -> bool {
147147
self.filled
148148
}
149149

@@ -443,11 +443,11 @@ mod tests {
443443
assert_eq!(x.len(), 4);
444444
assert_eq!(x.as_slice(), [1; 4]);
445445
assert_eq!(*x, [1; 4]);
446-
assert!(x.is_filled());
446+
assert!(x.is_full());
447447

448448
let x: HistoryBuffer<u8, 4> = HistoryBuffer::new();
449449
assert_eq!(x.as_slice(), []);
450-
assert!(!x.is_filled());
450+
assert!(!x.is_full());
451451
}
452452

453453
#[test]

0 commit comments

Comments
 (0)