Skip to content

Commit

Permalink
fix(validator): invalid Validator trait must be Validatable
Browse files Browse the repository at this point in the history
  • Loading branch information
ekkolon committed Jan 3, 2024
1 parent 7a45f8e commit e773e33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
//! # Examples
//!
//! ```rust
//! use ogp::validator::{Validator, DimensionsValidator, SecureURLValidator};
//! use ogp::validator::{Validatable, DimensionsValidator, SecureURLValidator};
//! use ogp::Result;
//!
//! struct MyData {
//! // ... fields for your data
//! }
//!
//! impl Validator for MyData {
//! impl Validatable for MyData {
//! fn validate(&self) -> Result<()> {
//! // Your validation logic for MyData
//! // ...
Expand Down Expand Up @@ -42,13 +42,13 @@
//!
//! # Traits
//!
//! - `Validator`: A trait for general validation.
//! - `Validatable`: A trait for general validation.
//! - `DimensionsValidator`: A trait for validating dimensions, including width and height.
//! - `SecureURLValidator`: A trait for validating secure URLs.
//!
//! ## Validator
//! ## Validatable
//!
//! The `Validator` trait provides a `validate` method that returns a `Result<()>` indicating whether the validation succeeded or failed.
//! The `Validatable` trait provides a `validate` method that returns a `Result<()>` indicating whether the validation succeeded or failed.
//!
//! ## DimensionsValidator
//!
Expand Down

0 comments on commit e773e33

Please sign in to comment.