Skip to content

for loop tuple syntax not rendered correctly #12740

Closed
@planetis-m

Description

@planetis-m

Example

runnableExamples:
  var data = @["one", "two"]
  for (i, d) in data.pairs:
    echo d

Current Output

Syntax error
the temp file contains:

var data = @["one", "two"]
for (i) = in data.pairs:
  echo d

Expected Output

nim doc compile and run correctly

$ nim -v
Nim Compiler Version 1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions