From 135414a3cfff11999a401d47faa1d47d35141f6c Mon Sep 17 00:00:00 2001 From: Ammar Elmesaly <47143347+ammar-elmesaly@users.noreply.github.com> Date: Thu, 18 Dec 2025 23:49:42 +0200 Subject: [PATCH] Fix typo in beginner track slicecs.md --- src/beginner/slices.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/beginner/slices.md b/src/beginner/slices.md index 8c91e6a..008638c 100644 --- a/src/beginner/slices.md +++ b/src/beginner/slices.md @@ -97,7 +97,7 @@ fn main() { // this function searches an array to find a subarray with the given sum // it returns the index where the subarray starts along with the length of the subarray -// if the array does not include any subarray with the sum, it returns a tuple with length or array +// if the array does not include any subarray with the sum, it returns a tuple with length of array fn find_subarray(nums: &[i32], sum: i32) -> (usize, usize) { for len in (1..nums.len() + 1).rev() { for start in 0..nums.len() - len + 1 {