Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 361 Bytes

underscore-expr.md

File metadata and controls

17 lines (13 loc) · 361 Bytes

_ expressions

Syntax
UnderscoreExpression :
   _

Underscore expressions, denoted with the symbol _, are used to signify a placeholder in a destructuring assignment. They may only appear in the left-hand side of an assignment.

An example of an _ expression:

let p = (1, 2);
let mut a = 0;
(_, a) = p;