Uh oh!
There was an error while loading. Please reload this page.
libstd/libcore: fix various typos - #74141
Conversation
rust-highfive
commented
Jul 8, 2020
r? @sfackler (rust_highfive has picked a reviewer for you, use r? to override) |
| } | ||
| /// Includes a utf8-encoded file as a string. | ||
| /// Includes a UTF-8-encoded file as a string. |
There was a problem hiding this comment.
| /// Includes a UTF-8-encoded file as a string. | |
| /// Includes a UTF-8encoded file as a string. |
There was a problem hiding this comment.
Will fix, but I'm curious: can you point me towards a grammar reference that indicates that this is the right choice?
There was a problem hiding this comment.
It's not a grammar fix, just a readability fix. I never seen UTF-8 and encoded joined together in my life. I also find multiple - in a paragraph hard to read. Looking at wikipedia, I can find both versions there.
There was a problem hiding this comment.
So like, the - wasn't even strictly necessary in the first place. For one example of a resource talking about this, see https://apastyle.apa.org/learn/faqs/when-use-hyphen
Basically all of these rules are about clarity. Does the hypen disambiguate, or not? I would argue that it's quite clear without the hyphen.
There was a problem hiding this comment.
(I should note that I particularly over-use the hypen (oh my I just did it again in this sentence) so this is very much often my fault in Rust docs, though I didn't author this one...)
pickfire
commented
Jul 8, 2020
Did you go through this with some kind of type checkers like |
steveklabnik
left a comment
There was a problem hiding this comment.
I agree with the one suggestion already made, but otherwise, looks great to me! r=me after that's fixed.
euclio
commented
Jul 9, 2020
I made a super hacky custom rustdoc pass that ran a spellchecker over markdown compiled to plain text. |
jyn514
commented
Jul 23, 2020
@bors r=@steveklabnik rollup=always |
bors
commented
Jul 23, 2020
📌 Commit 133e91d has been approved by |
jyn514
commented
Jul 23, 2020
Do you mind sharing? That sounds useful :) |
…arth Rollup of 8 pull requests Successful merges: - rust-lang#74141 (libstd/libcore: fix various typos) - rust-lang#74490 (add a Backtrace::disabled function) - rust-lang#74548 (one more Path::with_extension example, to demonstrate behavior) - rust-lang#74587 (Prefer constant over function) - rust-lang#74606 (Remove Linux workarounds for missing CLOEXEC support) - rust-lang#74637 (Make str point to primitive page) - rust-lang#74654 (require type defaults to be after const generic parameters) - rust-lang#74659 (Improve codegen for unchecked float casts on wasm) Failed merges: r? @ghost
euclio
commented
Jul 23, 2020
How do you all find https://github.com/drahnr/cargo-spellcheck? Is it useful? @euclio@jyn514 Do you think it would be good if we integrate that into tidy? |
It has a dependency on autotools and |
jyn514
commented
Jul 23, 2020
And it also doesn't work: |
Yeah, I'm not surprised @jyn514 The master branch shouldn't have a dependency on autotools anymore. It was getting that from hunspell-sys (which I maintain) and we recently moved the build over to |
No description provided.