Skip to content

Commit 9add4d1

Browse files
Hawk777sdroege
authored andcommitted
Fix incorrect documentation
This method panics if the type is incorrect. It doesn’t return `Err`.
1 parent 78b7529 commit 9add4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gio/src/list_model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub trait ListModelExtManual: sealed::Sealed + IsA<ListModel> + Sized {
2626

2727
// rustdoc-stripper-ignore-next
2828
/// If `T::static_type().is_a(self.item_type())` then it returns an iterator over the `ListModel` elements,
29-
/// else the types are not compatible and returns an `Err(...)`.
29+
/// else the types are not compatible and it panics.
3030
///
3131
/// # Panics
3232
///

0 commit comments

Comments
 (0)