fixes #6062
This commit is contained in:
parent
674db58a24
commit
6ba9c2b119
1 changed files with 0 additions and 14 deletions
14
doc/tut1.rst
14
doc/tut1.rst
|
|
@ -1492,20 +1492,6 @@ variables! For example:
|
|||
echo badname
|
||||
echo badext
|
||||
|
||||
Tuple unpacking **only** works in ``var`` or ``let`` blocks. The following code
|
||||
won't compile:
|
||||
|
||||
.. code-block:: nim
|
||||
|
||||
import os
|
||||
|
||||
var
|
||||
path = "usr/local/nimc.html"
|
||||
dir, name, ext = ""
|
||||
|
||||
(dir, name, ext) = splitFile(path)
|
||||
# --> Error: '(dir, name, ext)' cannot be assigned to
|
||||
|
||||
|
||||
Reference and pointer types
|
||||
---------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue