From 0e29f31515aab2af398ea5c4811f139a7e1f30f9 Mon Sep 17 00:00:00 2001 From: Amal Bijoy Date: Tue, 7 Apr 2026 10:05:34 +0530 Subject: [PATCH] Refine insertion sort zero-length wording --- Sorting-algorithms/Insertionsort.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sorting-algorithms/Insertionsort.java b/Sorting-algorithms/Insertionsort.java index 53f8ef9..0ce5764 100644 --- a/Sorting-algorithms/Insertionsort.java +++ b/Sorting-algorithms/Insertionsort.java @@ -5,7 +5,7 @@ public class Insertionsort{ /* * Edge-case behavior: * - Negative size is rejected. - * - Size 0 exits early with "Nothing to sort/search". + * - Size 0 exits early with "Nothing to sort." * - Null/empty arrays are ignored by the algorithm. */ public static void main(String[] args){ @@ -18,7 +18,7 @@ public static void main(String[] args){ return; } if (n == 0) { - System.out.println("Nothing to sort/search"); + System.out.println("Nothing to sort."); sc.close(); return; }