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 the hello world example in tutorial #3045

Closed
wants to merge 1 commit into from

Conversation

oyiptong
Copy link

the hello world example in the tutorial is wrong and does not compile.

this patch makes it compile and run.

@catamorphism
Copy link
Contributor

All of our examples in the tutorial automatically compile whenever we do a build (several times a day), so you can be confident that if you see a code example in the tutorial, it will compile with Rust as built from git HEAD. Examples aren't guaranteed to compile with older versions of Rust, so if you're running an older version of rustc, that's why.

In the (hopefully near) future we will be versioning the documentation.

@oyiptong
Copy link
Author

got it thanks!

bors pushed a commit to rust-lang-ci/rust that referenced this pull request May 15, 2021
Prevent right-shifting of block comments with bare lines.
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Aug 31, 2023
make sure we test all tier 1 targets

i686-pc-windows-gnu was missing (and i686-pc-windows-msvc was being tested twice, as host and foreign target).
celinval pushed a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Fixes model-checking/kani#3035.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Signed-off-by: Felipe R. Monteiro <felisous@amazon.com>
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.

None yet

2 participants