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

remove "#" symbols to make the code compile #32973

Merged
merged 1 commit into from
Apr 16, 2016
Merged

Conversation

kindlychung
Copy link
Contributor

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @steveklabnik (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.

@steveklabnik
Copy link
Member

@bors: r+ rollup

to be clear, the #s here are a rustdoc feature that lets you hide parts of examples. I do think it's more clear without them in this case though!

@bors
Copy link
Contributor

bors commented Apr 14, 2016

📌 Commit f916491 has been approved by steveklabnik

let f = factory();

let answer = f(1);
assert_eq!(6, answer);
# }
}
Copy link
Member

Choose a reason for hiding this comment

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

Sorry to comment when this was already approved, but it'd read nicer better the main function's body was indented and there was an empty line in front of the fn.

Copy link
Member

Choose a reason for hiding this comment

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

this is true. @kindlychung any chance you're interested in sending a second PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be honest I am a bit confused by the rollups below. Not yet very good at git. 😄

Copy link
Member

Choose a reason for hiding this comment

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

No worries, it's a rust-specific thing. We wouldn't want to, for example, run the full test suite for a tiny change like this, so we "roll up" a bunch of them together and run the tests for them all at once.

Adding the spaces would be a totally new pull request.

On Apr 15, 2016, 18:08 -0400, Kaiyin [email protected], wrote:

Insrc/doc/book/closures.md(#32973 (comment)):

let f = factory();>>let answer = f(1);>assert_eq!(6, answer);>-# }>+}

To be honest I am a bit confused by the rollups below. Not yet very good at git. 😄


You are receiving this because you were mentioned.
Reply to this email directly orview it on GitHub(https://github.com/rust-lang/rust/pull/32973/files/f91649144e1e2e6b3664545cb7e117d839f9cd95#r59948089)

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 15, 2016
remove "#" symbols to make the code compile
bors added a commit that referenced this pull request Apr 15, 2016
Rollup of 11 pull requests

- Successful merges: #32923, #32926, #32929, #32931, #32935, #32945, #32946, #32964, #32970, #32973, #32997
- Failed merges:
@bors bors merged commit f916491 into rust-lang:master Apr 16, 2016
@kindlychung kindlychung deleted the patch-1 branch April 16, 2016 08:16
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.

5 participants