Skip to content

Commit

Permalink
fix tutorial for ForRangeLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
apkrelling committed Nov 2, 2024
1 parent 95caeeb commit c685314
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/tutorials/for-loop.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"body_for = astx.Block()\n",
"\n",
"# Define a For Range Expression from 0 to 10 with step 1\n",
"range_expr = ForRangeExpr(\n",
"for_range_expr = astx.ForRangeExpr(\n",
" start=LiteralInt32(0),\n",
" end=LiteralInt32(10),\n",
" step=LiteralInt32(1)\n",
Expand All @@ -80,9 +80,7 @@
"# Define a For Range Loop that uses the For Range Expression\n",
"for_1000 = astx.ForRangeLoop(\n",
" variable=decl_a,\n",
" start=astx.LiteralInt32(0),\n",
" end=astx.LiteralInt32(1000),\n",
" step=astx.LiteralInt32(1),\n",
" range_expr=for_range_expr,\n",
" body=body_for\n",
")\n",
"\n",
Expand Down

0 comments on commit c685314

Please sign in to comment.