user
07/16/2021, 1:03 PMokarm
07/16/2021, 2:10 PMif
and opening parenthesis, closing parenthesis and opening braces etc.
2. Using if
, try
, when
as an expression warrants declaring the variable as val
, not var
. There is no further mutation of the reference in the snippets, official code samples should reinforce the habit of using read only references.
3. The second code snippet in "Null safety" is incorrectly rendered - two code blocks are coalesced, trapping two paragraphs of text in the code block.
4. The Java code snippet in "apply" is not rendered as a code block.