From 346ad87bd74ce2c0960bea731564173062f7ff6e Mon Sep 17 00:00:00 2001 From: AmirDanor Date: Thu, 1 Oct 2026 14:26:42 +0300 Subject: [PATCH] docs(comments): clarify instructions and improve formatting - Rephrase misleading instructions. - Add missing punctuation for consistency. --- src/hello/comment.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hello/comment.md b/src/hello/comment.md index 6c5e95cfb1..0487479254 100644 --- a/src/hello/comment.md +++ b/src/hello/comment.md @@ -20,7 +20,7 @@ fn main() { // Line comments start with two slashes. // Everything after the slashes is ignored by the compiler. - // Example: This line won't execute + // Example: This line won't execute. // println!("Hello, world!"); // Try removing the slashes above and running the code again. @@ -39,12 +39,12 @@ fn main() { // Block comments make it easy to toggle code on/off by adding // or removing just one slash: - /* <- Add a '/' here to uncomment the entire block below + /* <- Add another '/' before the first '/' to uncomment the block below. println!("Now"); println!("everything"); println!("executes!"); - // Line comments inside remain unaffected + // Line comments inside remain unaffected. // */