about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorkarishmarajput <84656423+karishmarajput@users.noreply.github.com>2021-10-31 17:07:03 +0530
committerGitHub <noreply@github.com>2021-10-31 11:37:03 +0000
commitb7f1547d026dd8f3a18660f713634bcb605c183f (patch)
tree71c667d7440fc85fdc2bce8fc94d29d8310f1ccc
parent12b568b4d98298bc89feebf556e093ffd28ed595 (diff)
downloaddorado-b7f1547d026dd8f3a18660f713634bcb605c183f.tar.gz
Fix typo and delete unused variable (#6)
-rw-r--r--src/algorithms/line-drawing/Bresenham.svelte3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/algorithms/line-drawing/Bresenham.svelte b/src/algorithms/line-drawing/Bresenham.svelte
index eb2afd6..c43f87f 100644
--- a/src/algorithms/line-drawing/Bresenham.svelte
+++ b/src/algorithms/line-drawing/Bresenham.svelte
@@ -7,7 +7,6 @@
   let x0 = 0, y0 = 0, x1 = 4, y1 = 4;
   let dx, dy, step;
 
-  let x_inc, y_inc;
   let x_axis = [], y_axis = [], p_vals = [];
 
   function solve() {
@@ -83,7 +82,7 @@
 
 {#if invalidInput === true}
   <p class="note">
-    Inavlid Input: Slope must be between 0 to 1.
+    Invalid Input: Slope must be between 0 to 1.
   </p>
 {/if}