From c36bc74fde9bb48b8f003b3d6b4b1202acbb0226 Mon Sep 17 00:00:00 2001 From: Rohan Janardhan <104809376+rxhxn30@users.noreply.github.com> Date: Tue, 4 Jul 2023 22:13:00 +0530 Subject: [PATCH] Update bubble-sort.cpp --- algorithms/CPlusPlus/Sorting/bubble-sort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithms/CPlusPlus/Sorting/bubble-sort.cpp b/algorithms/CPlusPlus/Sorting/bubble-sort.cpp index e8cf0c59..bce16856 100644 --- a/algorithms/CPlusPlus/Sorting/bubble-sort.cpp +++ b/algorithms/CPlusPlus/Sorting/bubble-sort.cpp @@ -18,7 +18,7 @@ int main() { swap = false; for (int j= 0; j< n-1; j++) - { //comparing adjecent elements of array + { //comparing adjacent elements of array if (arr[j]>arr[j+1]) { // swapping array elements temp = arr[j];