Skip to content

Commit

Permalink
Add screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Lotes committed Aug 6, 2024
1 parent 2323ed2 commit 14e0c98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hugo/content/docs/recipes/validation/dependency-loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ Examples for such dependency loops are:
bar();
}
void bar() {
foo(); //error, foo calls bar, bar calls foo
answer42();
}
void answer42() {
bar(); //error, foo calls bar, bar calls answer42, answer42 calls foo
}
```

Expand Down Expand Up @@ -214,6 +217,10 @@ Brain greets Homer! //error
Pinky greets Marge!
```

Here is the screenshot of VS Code with the error:

![Greeting loop errors](/assets/dependency-loops.png)

### Dependency resolution

The topological sort can be done like this:
Expand Down
Binary file added hugo/static/assets/dependency-loops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14e0c98

Please sign in to comment.