Rust (programming language): Difference between revisions

Content deleted Content added
m WP:REFerence WP:CITation parameters update-standardize: reorder.
Compound types: Fixed issue with example to the shadowing , the bool tuple will take precedence
Tags: Mobile edit Mobile web edit
Line 351:
let array: [i8; 5] = [1, 2, 3, 4, 5];
let tuple: (bool, bool) = (true, true);
let value = tuple.1; // -3true
let value = array[2]; // 3
</syntaxhighlight>
Line 362:
 
<!-- todo str, and ! -->
 
=== Ownership and references ===