Answers for "rust comment types"

2

rust comment

fn main() {
	// It's a simple comment
    println!("Hello, world!");
    
    println!("Condemned Crab comment"); // Comments in rust are with two slashes.
}
Posted by: Guest on February-17-2021
0

rust comment types

fn main() {
  // that is a comment for one line

  ///	that is a comment used for the documentation

  /*
  This is a comment
  for more than one line
  */
}
Posted by: Guest on January-31-2022
0

rust comments

// Use two '//'
Posted by: Guest on January-05-2022

Browse Popular Code Answers by Language