rasbt/LLMs-from-scratch

raw_text[:99] is 99 characters, not 100, on page 22.

verhas opened this issue · 1 comments

Bug description

On pg 22 text says the code will print the first 100 chars, but the code is raw_text[:99], which does 99 chars and in the sample there are 99 characters including the terminating space.

What operating system are you using?

None

Where do you run your code?

None

Environment




Good catch, thanks. I will make a note to get it updated to "99 characters". Thanks for noting.