intradoc links for irc
@@ -19,7 +19,7 @@ impl<'a> std::fmt::Debug for Tags<'a> {
}
impl<'a> Tags<'a> {
- /// Build the tags view from this borrowed `Str` and an associated `TagIndices`
+ /// Build the tags view from this borrowed `MaybeOwned` and an associated `TagIndices`
pub fn from_data_indices(data: &'a MaybeOwned<'a>, indices: &'a TagIndices) -> Self {
Self { data, indices }
}
@@ -61,12 +61,10 @@ impl<'a> Tags<'a> {
self.indices.get(key.borrow(), &*self.data)
}
- /** Tries to get the tag as a parsable [`FromStr`] type.
+ /** Tries to get the tag as a parsable [std::str::FromStr] type.
This returns None if it cannot parse, or cannot find the tag
- [FromStr]: https://doc.rust-lang.org/std/str/trait.FromStr.html
-
```rust
# use twitchchat::{irc::{TagIndices, Tags}, maybe_owned::MaybeOwned};
let input: MaybeOwned<'_> = "@foo=42;color=#1E90FF".into();
@@ -167,7 +165,7 @@ impl<'a> IntoIterator for &'a Tags<'a> {
}
}
-/// An iterator over the Tags
+/// An iterator over the [Tags]
#[derive(Clone)]
pub struct TagsIter<'a> {
inner: &'a Tags<'a>,
@@ -210,7 +208,7 @@ impl<'a> ::serde::Serialize for Tags<'a> {
}
}
-/// The reverse of [`escape_str`](#escape_str).
+/// The reverse of [escape_str].
///
///
/// ```rust
@@ -219,7 +217,7 @@ impl<'a> ::serde::Serialize for Tags<'a> {
/// assert_eq!(&*unescape_str(&*escape_str(s)), s);
/// ```
///
-/// Use [`escape_str`](escape_str) to reverse this.
+/// Use [escape_str] to reverse this.
/// ### Format
///
/// | escaped | character |
@@ -264,7 +262,7 @@ pub fn unescape_str(s: &str) -> MaybeOwned<'_> {
/// assert_eq!(&*unescape_str(&*escape_str(s)), s);
/// ```
///
-/// Use [`unescape_str`](unescape_str) to reverse this.
+/// Use [unescape_str] to reverse this.
/// ### Format
///
/// | character | escaped |
