Skip to content

Assorted documentation #328

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

Merged
merged 8 commits into from
Nov 20, 2017
Merged

Assorted documentation #328

merged 8 commits into from
Nov 20, 2017

Conversation

richard-uk1
Copy link

@richard-uk1 richard-uk1 commented Nov 11, 2017

I'm just trying to learn how this lib works, and I'm looking at source to work it out. Hopefully if I doc as I go, others that come after me will benefit :)

Copy link
Member

@jdm jdm left a comment

Choose a reason for hiding this comment

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

This is a great improvement!


use QualName;
use std::io;

//§ serializing-html-fragments
/// Used as a parameter to `serialize`, telling it if we want to skip the parent.
/// TODO check: Currently the parameter to `ChildrenOnly` is unused.
Copy link
Member

Choose a reason for hiding this comment

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

IncludeNode,
/// Only serialize the children of the node.
Copy link
Member

Choose a reason for hiding this comment

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

/// Only serialize the children of the node, treating any provided qualified name as the parent while serializing.

@@ -123,6 +176,29 @@ impl BufferQueue {
// If so, consume them and return Some(true).
// If they do not match, return Some(false).
// If not enough characters are available to know, return None.
/// Consume bytes matching the pattern, using a custom comparison function `eq`.
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove the existing comments, since the new ones are more thorough.

@jdm jdm self-assigned this Nov 17, 2017
@richard-uk1
Copy link
Author

I've addressed the issues you've raised. You're welcome to merge this, or if you leave it open I can continue adding documentation to it.

Or if you would rather I'll start a new PR with any other documentation I do. I don't mind either way.

@jdm
Copy link
Member

jdm commented Nov 20, 2017

Let's merge the changes that exist right now so others can benefit.
@bors-servo: r+

@bors-servo
Copy link
Contributor

📌 Commit de94da4 has been approved by jdm

@bors-servo
Copy link
Contributor

⌛ Testing commit de94da4 with merge 77a52ca...

bors-servo pushed a commit that referenced this pull request Nov 20, 2017
Assorted documentation

I'm just trying to learn how this lib works, and I'm looking at source to work it out. Hopefully if I doc as I go, others that come after me will benefit :)
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: jdm
Pushing 77a52ca to master...

@bors-servo bors-servo merged commit de94da4 into servo:master Nov 20, 2017
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.

3 participants