Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

formatting changes for consistency and readability

  • Loading branch information...
commit a749370d6c51438cc092048d7354c11dbff1e141 1 parent 1b04c09
Mike Christianson authored September 12, 2012

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. 7  Io/Day-3/gnome.io
7  Io/Day-3/gnome.io
@@ -4,7 +4,9 @@ List valueOutOfPlace := method(position,
4 4
 
5 5
 List stepItBack := method(position,
6 6
   swapIndices(position-1, position)
7  
-  if (position > 1, position = position - 1)
  7
+  if(position > 1, 
  8
+    position = position - 1
  9
+  )
8 10
   position
9 11
 )
10 12
 
@@ -17,7 +19,8 @@ List gnomeSort := method(
17 19
   while(position < size,
18 20
     if(valueOutOfPlace(position),
19 21
        position = stepItBack(position),
20  
-       position = moveForward(position))
  22
+       position = moveForward(position)
  23
+    )
21 24
   )
22 25
 )
23 26
 

0 notes on commit a749370

Please sign in to comment.
Something went wrong with that request. Please try again.