Skip to content
Open
Changes from 1 commit
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
1 change: 1 addition & 0 deletions xml/chapter3/section5/subsection2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ const fibs = fibgen(0, 1);
numbers, using a method known as the
<INDEX>prime number(s)<SUBINDEX>Eratosthenes<APOS/>s sieve for</SUBINDEX></INDEX>
<INDEX>sieve of Eratosthenes</INDEX>
<FOOTNOTE>This is not actually the Sieve of Eratosthenes, but rather a trial division sieve. The genuine Sieve of Eratosthenes marks off multiples of each prime starting from the prime's square, whereas this algorithm tests each candidate number by dividing it by all previously found primes. See Melissa E. O'Neill, <QUOTE>The Genuine Sieve of Eratosthenes,</QUOTE> <EM>Journal of Functional Programming</EM>, 2009.</FOOTNOTE>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The placement of this footnote is unconventional. For better readability, a footnote should typically be placed immediately after the term it clarifies, not before.

I recommend moving this <FOOTNOTE> to be after </EM> on line 236. The structure would then look like this:

...
    <EM>sieve of
    Eratosthenes</EM><FOOTNOTE>This is not actually the Sieve of Eratosthenes...</FOOTNOTE>.<FOOTNOTE>Eratosthenes, ...</FOOTNOTE>
...

This will correctly associate the footnote with the term "sieve of Eratosthenes".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Addressed this feedback in commit fix: address review feedback — Please reformat it.. Thanks for the review!

<EM>sieve of
Eratosthenes</EM>.<FOOTNOTE>Eratosthenes,
<INDEX>Eratosthenes</INDEX>
Expand Down