summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a494a23..feba85f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -117,7 +117,7 @@ pub fn generate(width: usize, height: usize, skew: Option<f64>) {
}
print_square(&mut lock, cur_row[cur_row.capacity() - 1]);
- println!(); // End of base case
+ writeln!(&mut lock).unwrap(); // End of base case
for row_bit in row_bits.iter() {
/* Recursive case
@@ -131,6 +131,6 @@ pub fn generate(width: usize, height: usize, skew: Option<f64>) {
print_square(&mut lock, *x1);
});
- println!(); // End of recursive case
+ writeln!(&mut lock).unwrap(); // End of recursive case
}
}