Skip to content

Commit

Permalink
tutorials/tictoc: Fix NED range mistake in NED for loop. Closes #15.
Browse files Browse the repository at this point in the history
The end of the range is unconventionally included in NED.
  • Loading branch information
torokati44 committed Nov 7, 2023
1 parent 0dabca0 commit 4e27074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/tictoc/code/tictoc18.ned
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ network TicToc18
tic[0].gate++ <--> Channel <--> tic[2].gate++;
tic[1].gate++ <--> Channel <--> tic[2].gate++;
// connect the central nodes together
for i=2..numCentralNodes+1 {
for i=2..numCentralNodes {
tic[i].gate++ <--> Channel <--> tic[i+1].gate++;
}
// connect the 2 nodes on the other side to the central nodes
Expand Down

0 comments on commit 4e27074

Please sign in to comment.