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

doc: some improvements to Instant and SystemTime #30061

Merged
merged 7 commits into from
Nov 26, 2015
Merged

doc: some improvements to Instant and SystemTime #30061

merged 7 commits into from
Nov 26, 2015

Conversation

tshepang
Copy link
Member

No description provided.

@rust-highfive
Copy link
Collaborator

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@brson
Copy link
Contributor

brson commented Nov 25, 2015

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Nov 25, 2015

📌 Commit 9bff112 has been approved by brson

@@ -140,7 +140,7 @@ impl SystemTime {
/// guaranteed to always be before later measurements (due to anomalies such
/// as the system clock being adjusted either forwards or backwards).
///
/// If successful, `Ok(duration)` is returned where the duration represents
/// If successful, `Ok(Duration)` is returned where the duration represents
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Duration was capitalised? It is a variable, not a type. (type is Result<Duration>)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would argue that Ok(Duration) is indeed a type -- there's even proposals that would make this literally true.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OTOH, the docs here aren't talking about the type

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no variable named duration anywhere here, so I felt using a type name would be more suitable. It would also be implied that we are referring to the type of the returned value.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be very opionated topic without a clear preference, so I retract my objection for the change, I guess.

@emberian
Copy link
Member

@bors r-

@nagisa
Copy link
Member

nagisa commented Nov 26, 2015

This looks good to go for me. Sorry for the false alarm again.

@Gankra
Copy link
Contributor

Gankra commented Nov 26, 2015

@bors r=brson rollup

@bors
Copy link
Contributor

bors commented Nov 26, 2015

📌 Commit cc815d2 has been approved by brson

@bors
Copy link
Contributor

bors commented Nov 26, 2015

⌛ Testing commit cc815d2 with merge 6f3becb...

bors added a commit that referenced this pull request Nov 26, 2015
@bors
Copy link
Contributor

bors commented Nov 26, 2015

💔 Test failed - auto-mac-64-nopt-t

@steveklabnik
Copy link
Member

@bors: retry

@bors bors merged commit cc815d2 into rust-lang:master Nov 26, 2015
@tshepang tshepang deleted the doc-time branch November 26, 2015 21:47
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.

8 participants