From 48e4fb30d20381644bc04789b76f43f53769babd Mon Sep 17 00:00:00 2001 From: Eric Park Date: Sat, 29 Oct 2022 13:52:08 +0900 Subject: [PATCH] diverging: fix issues with example code - Fixes code not compiling due to missing semicolon - Fixes warning about the unused variable `a` --- src/fn/diverging.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fn/diverging.md b/src/fn/diverging.md index 52e1f819ae..4bc7c9fea6 100644 --- a/src/fn/diverging.md +++ b/src/fn/diverging.md @@ -21,8 +21,8 @@ fn some_fn() { } fn main() { - let a: () = some_fn(); - println!("This function returns and you can see this line.") + let _a: () = some_fn(); + println!("This function returns and you can see this line."); } ```