Uh oh!
There was an error while loading. Please reload this page.
doc: there is no case that is shown, so something was likely missing … - #31762
Conversation
rust-highfive
commented
Feb 18, 2016
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
steveklabnik
commented
Feb 18, 2016
I am confused. It's showing what the value of this constant should be, given that we run the builders on this particular platform. |
tshepang
commented
Feb 18, 2016
Where is it shown that we are running on |
steveklabnik
commented
Feb 18, 2016
That's the idea with these. They're demonstrating the value this constant will have. |
tshepang
commented
Feb 18, 2016
But the constant depends on what platform was used to build the code, right? |
steveklabnik
commented
Feb 18, 2016
That's why it's "in this case". When these docs were built. |
tshepang
commented
Feb 18, 2016
I don't get it. There needs to be more explanation than just "in this case". More importantly, how is that info even important... why would we telling readers that the docs were built on |
steveklabnik
commented
Feb 18, 2016
Yeah, I didn't close it, because if its confusing, we should improve it. These are string constants. This is intended to be showing the example value of said constant. On Feb 18, 2016, 16:35 -0500, Tshepang Lekhonkhobenotifications@github.com, wrote:
|
MatejLach
commented
Feb 18, 2016
@steveklabnik If I understand @tshepang correctly, this link shows it in context: I think what @tshepang is saying is that when you look at the docs, it doesn't make sense to say |
tshepang
commented
Feb 18, 2016
@MatejLach understands me |
steveklabnik
commented
Feb 18, 2016
Yes. This existing text was a compromise; there's no way to directly insert it, so I put in the example from the way that the docs will be displayed officially. |
MatejLach
commented
Feb 18, 2016
@steveklabnik Just to make sure, you're saying that you inserted the |
steveklabnik
commented
Feb 19, 2016
Because the builder that builds the docs is running on a Linux box. On Feb 18, 2016, 18:55 -0500, Matej Ľachnotifications@github.com, wrote:
|
frewsxcv
commented
Feb 19, 2016
For what it's worth, I think the text
is confusing since it's not immediately obvious what "this" is referring to. In my opinion, I don't think the existence of that sentence adds much value. |
There was a problem hiding this comment.
of the operating system in use
That would align this with the doc comment below, and then it's clear to which operating system this actually refers to.
There was a problem hiding this comment.
Adding "in use" is an improvement, thanks.
mitaa
commented
Feb 19, 2016
These items / doc-comments are never cfg'd out, so it seems like if one were to build windows documentation the docs would still show I think the listed possible values are clear enough. |
steveklabnik
commented
Feb 19, 2016
@mitaa yes, that's what I meant by
|
tshepang
commented
Feb 19, 2016
@steveklabnik have you seen this page https://doc.rust-lang.org/nightly/std/env/consts? |
steveklabnik
commented
Feb 19, 2016
Yes, I have. |
steveklabnik
commented
Feb 19, 2016
So, to be clear, what I want to see in an improvement here is to make sure that we have examples of what this constants look like. This was how I did it; other ways are welcome. I don't want to remove the example, though. |
tshepang
commented
Feb 22, 2016
There is no example in that page. What example are you referring to? |
steveklabnik
commented
Feb 22, 2016
These are constants. This is an example showing the value of said constants. |
tshepang
commented
Feb 22, 2016
You are talking about an example as if it exists...
|
steveklabnik
commented
Feb 22, 2016
The example is the text you are trying to remove in this PR. |
MatejLach
commented
Feb 22, 2016
@tshepang I think you're misunderstanding what @steveklabnik means by an example in this case. |
ollie27
commented
Mar 2, 2016
There's a list of examples under the "Some possible values:" header. Is that not enough? |
tshepang
commented
Mar 3, 2016
They should be enough, but they don't render here. Maybe a bug in rustdoc? |
mitaa
commented
Mar 3, 2016
No, thats actually intentional. On module pages only short summaries are shown. |
tshepang
commented
Mar 3, 2016
Wow, wasn't even aware those are click-able. Well, that makes the case for this change even stronger, don't you think @steveklabnik? |
tshepang
commented
Apr 1, 2016
ranma42
commented
Apr 1, 2016
I agree with @steveklabnik that providing an example value in the short summary is convenient, but I also think that @MatejLach is right: the wording Also, |
steveklabnik
commented
Apr 1, 2016
tshepang
commented
Apr 5, 2016
PR updated |
steveklabnik
commented
Apr 5, 2016
@bors: r+ rollup |
bors
commented
Apr 5, 2016
📌 Commit 8f463ea has been approved by |
doc: there is no case that is shown, so something was likely missing … …from the change
doc: there is no case that is shown, so something was likely missing … …from the change
doc: there is no case that is shown, so something was likely missing … …from the change
doc: there is no case that is shown, so something was likely missing … …from the change
…from the change