-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fix typo "earlier rather than later" #201
Conversation
@tudorsiminic see my comments for a little bit of polish. |
Which comments do you refer to ? I'm not seeing them |
Is it possible to send another push with the change, |
background/background.tex
Outdated
@@ -306,7 +306,7 @@ \subsection{Asserts} | |||
Here is a quick example with an assert. | |||
Let's say that we are writing code using memcpy. | |||
We would want to put an assert before that checks whether my two memory regions overlap. | |||
If they do overlap, memcpy runs into undefined behavior, so we want to catch that problem than later. | |||
If they do overlap, memcpy runs into undefined behavior, so we want to catch that problem earlier rather than later. | |||
|
|||
\begin{lstlisting}[language=C] | |||
assert(!(src < dest+n && dest < src+n)); //Checks overlap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this be a more understandable assert ? (Also does not have a "not"; it asserts something is true).
assert( src+n < dest || src >= dest + n); // source should finish before the destination or the source starts after the end of destination
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, sounds good to me
@tudorsiminic Perhaps you or Andrew can fix the github actions that build and deploy the coursebook. |
No description provided.