Skip to content

Commit f30537a

Browse files
Added template deduction
1 parent b267f1f commit f30537a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ La librería incorpora dos métodos estáticos para el calculo de QuickSort asce
1010
Para la ordenación en sentido ascendente usaríamos el método SortAscending.
1111

1212
```c++
13-
QuickSort<int>::SortAscending(items, initItem, numItems);
13+
QuickSort::SortAscending(items, initItem, numItems);
1414
```
1515
1616
Mientras que para la ordenación en sentido descendente usaríamos el método SortDescending.
1717
```c++
18-
QuickSort<int>::SortDescending(items, initItem, numItems);
18+
QuickSort::SortDescending(items, initItem, numItems);
1919
```
2020

2121
## Ejemplos
@@ -42,7 +42,7 @@ void setup()
4242

4343
Serial.println("Ordenando 100 integers");
4444
unsigned long timeCount = micros();
45-
QuickSort<int>::SortAscending(values100, 0, values100Length - 1);
45+
QuickSort::SortAscending(values100, 0, values100Length - 1);
4646
timeCount = micros() - timeCount;
4747
printArray(values100, values100Length);
4848
Serial.println();
@@ -78,7 +78,7 @@ void setup()
7878
7979
Serial.println("Ordenando 100 integers");
8080
unsigned long timeCount = micros();
81-
QuickSort<float>::SortAscending(values100, 0, values100Length - 1);
81+
QuickSort::SortAscending(values100, 0, values100Length - 1);
8282
timeCount = micros() - timeCount;
8383
printArray(values100, values100Length);
8484
Serial.println();

0 commit comments

Comments
 (0)