Skip to content

Commit

Permalink
Update panic messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Nov 24, 2023
1 parent c2b2fb4 commit 580f3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/fj-core/src/objects/object_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl<T> ObjectSet<T> {
for handle in handles {
if added.contains(&handle) {
panic!(
"Constructing `HandleSet` with duplicate handle: {:?}",
"Constructing `ObjectSet` with duplicate handle: {:?}",
handle
);
}
Expand Down Expand Up @@ -109,7 +109,7 @@ impl<T> ObjectSet<T> {
///
/// Panics, if `ObjectSet` is empty.
pub fn nth_circular(&self, index: usize) -> &Handle<T> {
assert!(!self.is_empty(), "`Handles` must not be empty");
assert!(!self.is_empty(), "`ObjectSet` must not be empty");

let index = index % self.len();
self.nth(index)
Expand Down

0 comments on commit 580f3f4

Please sign in to comment.