Skip to content

Fix import of coconut in flood_fill.md #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contents/flood_fill/flood_fill.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ In code, this might look like this:
{% sample lang="py" %}
[import:10-25, lang="python"](code/python/flood_fill.py)
{% sample lang="coco" %}
[import:15-19, lang="coconut"](code/coconut/flood_fill.coco)
[import:15-20, lang="coconut"](code/coconut/flood_fill.coco)
{% endmethod %}


Expand All @@ -117,7 +117,7 @@ In code, it might look like this:
{% sample lang="py" %}
[import:55-63, lang="python"](code/python/flood_fill.py)
{% sample lang="coco" %}
[import:54-63, lang:"coconut"](code/coconut/flood_fill.coco)
[import:52-61, lang:"coconut"](code/coconut/flood_fill.coco)
{% endmethod %}

The above code continues recursing through available neighbors as long as neighbors exist, and this should work so long as we are adding the correct set of neighbors.
Expand Down Expand Up @@ -179,7 +179,7 @@ The code would look something like this:
{% sample lang="py" %}
[import:38-53, lang="python"](code/python/flood_fill.py)
{% sample lang="coco" %}
[import:37-51, lang:"coconut"](code/coconut/flood_fill.coco)
[import:36-49, lang:"coconut"](code/coconut/flood_fill.coco)
{% endmethod %}

Now, there is a small trick in this code that must be considered to make sure it runs optimally.
Expand Down