From f579e040dcfdcccae374c37f46c904f7a1d23beb Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 14 Nov 2022 19:17:25 +0000 Subject: [PATCH] docs(smallest): specify what to do when the hashmap is empty --- subjects/smallest/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subjects/smallest/README.md b/subjects/smallest/README.md index 157c34c4..504bfa92 100644 --- a/subjects/smallest/README.md +++ b/subjects/smallest/README.md @@ -4,6 +4,8 @@ Create a function named `smallest` that gets the smallest number in the `HashMap`. +If the `HashMap` is empty, return the maximum `i32`. + ### Expected Function ```rust