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

docs(iroh-net): Update NodeAddr docs #2365

Merged
merged 3 commits into from
Jun 17, 2024
Merged

docs(iroh-net): Update NodeAddr docs #2365

merged 3 commits into from
Jun 17, 2024

Conversation

flub
Copy link
Contributor

@flub flub commented Jun 17, 2024

Description

This follows
https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
and updates the doc comments in an attempt to be more user-friendly.

Breaking Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • [ ] Tests if relevant.
  • [ ] All breaking changes documented.

iroh-base/src/key.rs Outdated Show resolved Hide resolved
@flub flub enabled auto-merge June 17, 2024 08:59
@flub flub added this pull request to the merge queue Jun 17, 2024
Merged via the queue into main with commit 53dfed1 Jun 17, 2024
25 checks passed
Comment on lines +38 to +40
/// [discovery]: https://docs.rs/iroh_net/*/iroh_net/index.html#node-discovery
/// [home relay]: https://docs.rs/iroh_net/*/iroh_net/relay/index.html
/// [Relay server]: https://docs.rs/iroh_net/*/iroh_net/index.html#relay-servers
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I'm aware this type of links are not verified when checking docs so, while these make sense, it would be good to avoid them in general

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@divagant-martian do you now how to link these without having to write them down like this? I first tried to write this as iroh_net#relay-servers or even iroh_net but I didn't know how to do inter-crate links and this was the only thing I could come up with.

},
}
}

/// Apply the options to `self`.
Copy link
Contributor

Choose a reason for hiding this comment

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

bit late but this one was missed

/// Apply the options to `self`.
///
/// This is use to more tightly control the information stored in a [`NodeAddr`]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// This is use to more tightly control the information stored in a [`NodeAddr`]
/// This is used to more tightly control the information stored in a [`NodeAddr`]

/// Apply the options to `self`.
/// Applies the options to `self`.
///
/// This is use to more tightly control the information stored in ab [`AddrInfo`]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// This is use to more tightly control the information stored in ab [`AddrInfo`]
/// This is used to more tightly control the information stored in ab [`AddrInfo`]

@dignifiedquire dignifiedquire deleted the flub/nodeaddr-docs branch June 17, 2024 17:52
github-merge-queue bot pushed a commit that referenced this pull request Jun 17, 2024
## Description

Some minor typos missed earlier.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Followup from #2365

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- ~~[ ] Tests if relevant.~~
- ~~[ ] All breaking changes documented.~~
ppodolsky pushed a commit to izihawa/iroh that referenced this pull request Jun 22, 2024
## Description

This follows

https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text
and updates the doc comments in an attempt to be more user-friendly.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- ~~[ ] Tests if relevant.~~
- ~~[ ] All breaking changes documented.~~
ppodolsky pushed a commit to izihawa/iroh that referenced this pull request Jun 22, 2024
## Description

Some minor typos missed earlier.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

Followup from n0-computer#2365

## Change checklist

- [x] Self-review.
- [x] Documentation updates if relevant.
- ~~[ ] Tests if relevant.~~
- ~~[ ] All breaking changes documented.~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants