Skip to content

Commit

Permalink
use hyperlink syntax in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm committed Jul 26, 2023
1 parent 444cde7 commit 98f6f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/filters/cosmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub enum CosmeticFilterError {
HtmlFilteringUnsupported,
}

/// Refer to https://github.com/uBlockOrigin/uBlock-issues/wiki/Static-filter-syntax#action-operators
/// Refer to <https://github.com/uBlockOrigin/uBlock-issues/wiki/Static-filter-syntax#action-operators>
enum CosmeticFilterAction {
Remove,
/// Argument is one or more CSS property declarations, separated by the standard ;. Some
Expand Down Expand Up @@ -442,7 +442,7 @@ impl CosmeticFilter {
/// which it applies. However, if a specific rule only has negated hostnames or entities, it
/// technically should apply to any hostname which does not match a negation.
///
/// See: https://github.com/chrisaljoudi/uBlock/issues/145
/// See: <https://github.com/chrisaljoudi/uBlock/issues/145>
///
/// To account for this inconsistency, this method will generate and return the corresponding
/// 'hidden' generic rule if one applies.
Expand Down
2 changes: 1 addition & 1 deletion src/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl TryFrom<&str> for ExpiresInterval {
}

/// Includes information about any "special comments" as described by
/// https://help.eyeo.com/adblockplus/how-to-write-filters#special-comments
/// <https://help.eyeo.com/adblockplus/how-to-write-filters#special-comments>
#[derive(Default, Serialize)]
pub struct FilterListMetadata {
/// `! Homepage: http://example.com` - This comment determines which webpage should be linked
Expand Down

0 comments on commit 98f6f54

Please sign in to comment.