You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass='kw'>let</span><spanclass='ident'>x</span><spanclass='op'>=</span> (<spanclass='ident'>y</span><spanclass='op'>=</span><spanclass='number'>6</span>); <spanclass='comment'>// x has the value `()`, not `6`</span></pre>
<spanclass='kw'>let</span><spanclass='ident'>x</span><spanclass='op'>=</span><spanclass='number'>42</span>; <spanclass='comment'>// x has type i32</span>
285
-
286
-
<spanclass='kw'>let</span><spanclass='ident'>y</span><spanclass='op'>=</span><spanclass='number'>1.0</span>; <spanclass='comment'>// y has type f64</span></pre>
<spanclass='kw'>let</span><spanclass='ident'>complete</span><spanclass='op'>=</span><spanclass='kw-2'>&</span><spanclass='ident'>a</span>[..]; <spanclass='comment'>// A slice containing all of the elements in a</span>
502
-
<spanclass='kw'>let</span><spanclass='ident'>middle</span><spanclass='op'>=</span><spanclass='kw-2'>&</span><spanclass='ident'>a</span>[<spanclass='number'>1</span>..<spanclass='number'>4</span>]; <spanclass='comment'>// A slice of a: just the elements 1, 2, and 3</span></pre>
0 commit comments