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

The function doc for AddSibling #53

Open
suntong opened this issue Mar 17, 2021 · 0 comments
Open

The function doc for AddSibling #53

suntong opened this issue Mar 17, 2021 · 0 comments

Comments

@suntong
Copy link

suntong commented Mar 17, 2021

The function doc for AddSibling says:

AddSibling adds a new node 'n' as a sibling of a given node 'sibling'. Note it is not necessarily true that the new node 'n' would be added immediately after 'sibling'. If 'sibling' isn't the last child of its parent, then the new node 'n' will be added at the end of the sibling chain of their parent.

IIUC, that can be simplified as,

AddSibling adds a new node 'n' as a sibling of a given node 'sibling'. The new node 'n' will always be added at the end of the sibling chain of their parent.

Is my understanding correct? thx

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

No branches or pull requests

1 participant