You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FTR, there's also an additional problem in the book text (or the naming of the file in the repo). The book says:
Look in ch5/ ch5-impossible-addition.rs for the source code for this listing
but the actual file is called:
ewen@basadi:~/misc/src/rust/rust-in-action/code/ch5$ ls ch5*impossible*rs
ch5-impossible-add.rs
ewen@basadi:~/misc/src/rust/rust-in-action/code/ch5$
Ie, one has the suffix "-addition", and one has the suffix "-add"; the meaning is similar, but anyone cut'n'pasting filenames to look for will be confused. (It's probably easier to rename the file in the repo to match the book text. ETA: The second half of page 141, of the PDF version, uses the name matching the repo; so maybe it's just the "look in" reference that introduces it which has the wrong name.)
Anyway I can confirm properly commenting out the book reference markers does allow the example to compile.
Activity
Comment out ch5-impossible-add book notes
ewenmcneill commentedon Jan 6, 2023
FTR, there's also an additional problem in the book text (or the naming of the file in the repo). The book says:
but the actual file is called:
Ie, one has the suffix "-addition", and one has the suffix "-add"; the meaning is similar, but anyone cut'n'pasting filenames to look for will be confused. (It's probably easier to rename the file in the repo to match the book text. ETA: The second half of page 141, of the PDF version, uses the name matching the repo; so maybe it's just the "look in" reference that introduces it which has the wrong name.)
Anyway I can confirm properly commenting out the book reference markers does allow the example to compile.
Ewen
CC: @timClicks
timClicks commentedon Jan 6, 2023
Oh good catch! I will get that fixed.