On Tue, May 28, 2024 at 5:12 PM Antero Mejr <xxxxxx@antr.me> wrote:
 
(read-doc port)
=> documentation record
     attached = #f
     text = "   Note: the answer should be five. "
     content = #f

Shouldn't content be eof-object? If it's #false, you won't be able to distinguish the last case from "#false" appearing in the input stream.