Skip to content

Commit 52e4c29

Browse files
author
johhnry
committed
change
1 parent bcd6a56 commit 52e4c29

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contents/bogo_sort/bogo_sort.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ In code, it looks something like this:
4343
[import:16-18, lang:"nim"](code/nim/bogo_sort.nim)
4444
{% sample lang="ruby" %}
4545
[import:12-16, lang:"ruby"](code/ruby/bogo.rb)
46-
{% sample lang="processing" %}
46+
{% sample lang="pde" %}
4747
[import:55-59, lang:"java"](code/processing/bogoSort.pde)
4848
{% endmethod %}
4949

@@ -87,7 +87,7 @@ We are done here!
8787
[import, lang:"nim"](code/nim/bogo_sort.nim)
8888
{% sample lang="ruby" %}
8989
[import, lang:"ruby"](code/ruby/bogo.rb)
90-
{% sample lang="processing" %}
90+
{% sample lang="pde" %}
9191
[import:1-53, lang:"java"](code/processing/bogoSort.pde)
9292
{% endmethod %}
9393

contents/bogo_sort/code/processing/bogoSort.pde

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ void setup() {
55
stroke(255);
66
fill(0);
77

8-
random_array(test_array,0,100);
8+
randomArray(test_array,0,100);
99
}
1010

1111
void draw(){
@@ -25,7 +25,7 @@ void draw(){
2525
}
2626

2727

28-
void random_array(int[] array , int min , int max){
28+
void randomArray(int[] array , int min , int max){
2929
for(int i=0;i<array.length;i++){
3030
array[i] = (int) random(min,max);
3131
}
@@ -52,7 +52,7 @@ Boolean isSorted(int[] array){
5252
return true;
5353
}
5454

55-
void bogo_Sort(int[] array){
55+
void bogoSort(int[] array){
5656
while (! isSorted(array)){
5757
randomize(array);
5858
}

0 commit comments

Comments
 (0)