diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index 40a3dea3..6d101698 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -258,7 +258,7 @@ impl Indexable<(uint, uint), N> for DMat { let offset2 = self.offset(row2, col2); let count = self.mij.len(); assert!(offset1 < count); - assert!(offset1 < count); + assert!(offset2 < count); self.mij.as_mut_slice().swap(offset1, offset2); }