-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
README.md: Remove prompts from code blocks #76883
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
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.
I don't have much opinion on this but I believe it is there for a reason and I prefer the way it is currently to be clearer ($
for unix sh and >
for msvc).
|
That's correct, fish could be |
@qlcom Ah, you don't need to close it if you think it is good. If you think the change is better, you can ask the docs team to review, I am not from any team and just discussing this from my viewpoint. |
I personally find these really annoying when trying to copy/paste because you have to carefully not select them, so I think this is a win. @bors r+ rollup |
📌 Commit 18ce4c1 has been approved by |
@Mark-Simulacrum Note that one line here is not being able to copy paste without human intervention like pacman -Sy pacman-mirrors
... If users happened to copy paste # Update package mirrors (may be needed if you have a fresh install of MSYS2)
pacman -Sy pacman-mirrors
# Install build tools needed for Rust. If you're building a 32-bit compiler,
# then replace "x86_64" below with "i686". If you've already got git, python,
# or CMake installed and in PATH you can remove them from this list. Note
# that it is important that you do **not** use the 'python2', 'cmake' and 'ninja'
# packages from the 'msys2' subsystem. The build has historically been known
# to fail with these packages.
pacman -S git \
make \
diffutils \
tar \
mingw-w64-x86_64-python \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-ninja If they copy pasted the whole thing it would not work. |
Right, but selecting the single-line statements is still much easier (for me) without the prefix, which IMO doesn't add much value. |
on which shell? |
@qlcom Did you intentionally close this? I continue to feel that it should be merged. |
why does it need to run CI server to merge a pull request which changes a markdown file? |
Everything that lands into Rust master needs to pass CI, currently we do not try to optimize for "definitely green" changes because that's error-prone and might cause failures if humans are in that loop. This'll get merged soon, though, it just needs to work its way through the queue: https://bors.rust-lang.org/homu/queue/rust |
AFAIK there's a similar discussion in rustc-dev-guide here rust-lang/rustc-dev-guide#460 |
README.md: Remove prompts from code blocks rust-lang#76863
Rollup of 15 pull requests Successful merges: - rust-lang#76732 (Add docs for `BasicBlock`) - rust-lang#76832 (Let backends define custom targets) - rust-lang#76866 (Remove unused feature gates from library/ crates) - rust-lang#76875 (Move to intra-doc links in library/alloc/src/collections/binary_heap.rs) - rust-lang#76876 (Move to intra-doc links in collections/btree/map.rs and collections/linked_list.rs) - rust-lang#76877 (Move to intra-doc links in collections/vec_deque.rs and collections/vec_deque/drain.rs) - rust-lang#76878 (Move the version number to a plaintext file) - rust-lang#76883 (README.md: Remove prompts from code blocks) - rust-lang#76887 (Add missing examples on HashSet iter types) - rust-lang#76890 (use matches!() macro for simple if let conditions) - rust-lang#76891 (don't take `TyCtxt` by reference) - rust-lang#76910 (transmute: use diagnostic item) - rust-lang#76924 (Add tracking issue for feature(unix_socket_peek)) - rust-lang#76926 (BTreeMap: code readability tweaks) - rust-lang#76940 (Don't allow implementing trait directly on type-alias-impl-trait) Failed merges: r? `@ghost`
#76863