From 3dc0e27fd2d0a3cf8cb719711891763eff7244d5 Mon Sep 17 00:00:00 2001 From: Vincent Barrielle Date: Mon, 12 May 2014 21:54:18 +0200 Subject: [PATCH] fix typo --- src/structs/dmat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }