MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development / main

Function main

chapter 2/code.rs:19–22  ·  view source on GitHub ↗

variables in rust

()

Source from the content-addressed store, hash-verified

17
18// variables in rust
19fn main() {
20 let x = 5;
21 println!(“The value of is:{x}”);
22}
23
24// all variables in Rust are immutable
25fn main() {

Callers

nothing calls this directly

Calls 3

plus_tenFunction · 0.85
another_functionFunction · 0.85
calculate_lengthFunction · 0.85

Tested by

no test coverage detected