Skip to content

Commit 3a1b7d4

Browse files
committed
Fix insert_ordered in DList
1 parent 75d3690 commit 3a1b7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/dlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ impl<T> DList<T> {
410410
}
411411
}
412412

413-
impl<T: Ord> DList<T> {
413+
impl<T: TotalOrd> DList<T> {
414414
/// Insert `elt` sorted in ascending order
415415
///
416416
/// O(N)

0 commit comments

Comments
 (0)