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

Fix documentation warnings #113

Merged
merged 3 commits into from
Jan 5, 2018
Merged

Conversation

dlrobertson
Copy link
Collaborator

There are several warnings that are thrown when running cargo doc. Fix
these warnings.

@dlrobertson
Copy link
Collaborator Author

I'm okay with dropping the code block changes due to rust-lang/rust#38739

src/lib.rs Outdated
@@ -10,16 +10,14 @@
//! for writing applications but also to be a toolbox of networking primitives, so
//! every layer is fully exposed and documented.
//!
//! When discussing networking stacks and layering, often the [OSI model][osi] is invoked.
//! When discussing networking stacks and layering, often the [OSI model](osi) is invoked.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wait, what? How is this legal Markdown?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Its not :(. I was playing around with some stuff and it got lumped in here.

src/phy/mod.rs Outdated
@@ -17,73 +17,71 @@
//! An implementation of the [Device](trait.Device.html) trait for a simple hardware
//! Ethernet controller could look as follows:
//!
/*!
```rust
Copy link
Contributor

Choose a reason for hiding this comment

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

This change makes it a real pain in the ass to update large code blocks.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. If we're okay with some extra warnings, I'd be okay with going back to /*!.

@dlrobertson
Copy link
Collaborator Author

Updated to use /*! for the entire section.

There are several warnings that are thrown when running `cargo doc`. Fix
these warnings.
@whitequark whitequark merged commit 4d918e4 into smoltcp-rs:master Jan 5, 2018
@dlrobertson dlrobertson deleted the fix_docs branch May 9, 2018 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants