Skip to content
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

Merged
merged 4 commits into from
Dec 9, 2023

Conversation

tudorsiminic
Copy link
Contributor

@tudorsiminic tudorsiminic commented Dec 8, 2023

No description provided.

@tudorsiminic
Copy link
Contributor Author

@angrave

@angrave
Copy link
Contributor

angrave commented Dec 8, 2023

@tudorsiminic see my comments for a little bit of polish.

@tudorsiminic
Copy link
Contributor Author

@tudorsiminic see my comments for a little bit of polish.

Which comments do you refer to ? I'm not seeing them

@angrave
Copy link
Contributor

angrave commented Dec 8, 2023

Is it possible to send another push with the change,
catch -> discover
and the update the assert code too, as per my comments above?

@tudorsiminic
Copy link
Contributor Author

Is it possible to send another push with the change, catch -> discover and the update the assert code too, as per my comments above?

Did you submit the "comments above"? I don't see them... Here's a screenshot
prcomm

@@ -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
Copy link
Contributor

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

Copy link
Contributor Author

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

background/background.tex Outdated Show resolved Hide resolved
@tudorsiminic tudorsiminic requested a review from angrave December 9, 2023 00:07
@angrave angrave merged commit 733a91f into illinois-cs241:master Dec 9, 2023
0 of 3 checks passed
@angrave
Copy link
Contributor

angrave commented Dec 9, 2023

@tudorsiminic Perhaps you or Andrew can fix the github actions that build and deploy the coursebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants