Rust

Comments in Rust

Në shqip: Komentet në Rust

ShpjegimiSQ

Rust ka komente me // dhe /* */. Komentet me /// dokumentojnë elementin pasues dhe //! modulin ose crate-in — nga to cargo doc krijon faqe dokumentimi.

EnglishEN

Rust has // and /* */ comments. /// comments document the next item and //! the module or crate — from them cargo doc builds documentation pages.

Si ta mendosh

Si shënimet në margjinë.

Lexoje në anglisht

Like notes in the margin.

Shembull kodirust

// koment i zakonshëm
/// Kthen katrorin e x.
fn katror(x: i32) -> i32 { x * x }

Terma të lidhur