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

Add documentation on type sizes #1188

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hayley-leblanc
Copy link
Collaborator

This PR adds a new page to the docs with info on setting the size of Sized types for use in ghost code, including how to set the size of usize/isize. There was a small amount of documentation on usize/isize in the the Integers part of the tutorial, so to make it easier to keep the documentation in sync I moved this to the new file. I'm not sure whether it would be better to have this information in the tutorial or the reference, though, so I'm happy to move some/all of the documentation back to the tutorial if folks think that would be a better location for it.

@utaal utaal self-requested a review July 4, 2024 08:18
@tjhance
Copy link
Collaborator

tjhance commented Nov 13, 2024

This is a bit redundant with existing layout documentation (https://verus-lang.github.io/verus/guide/reference-global.html) However, the existing page lacks examples, which this PR provides.

I realized it's been a few months, but if you're still interested in merging this, I think the best course is to rebase and consolidate the new examples into the existing "global" directive reference section.

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