chore: Fix typos (#447)

This commit is contained in:
John Vandenberg 2024-01-16 15:00:33 +08:00 committed by GitHub
parent 4461d0ff7f
commit 8dc33ea41a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ pub(crate) static DEFAULT_SCOPE: Lazy<Url> =
impl JSONSchema {
/// Return a default `CompilationOptions` that can configure
/// `JSONSchema` compilaton flow.
/// `JSONSchema` compilation flow.
///
/// Using options you will be able to configure the draft version
/// to use during `JSONSchema` compilation

View File

@ -54,7 +54,7 @@ impl Hash for HashedValue<'_> {
}
// Empirically calculated threshold after which the validator resorts to hashing.
// Calculated for an array of mixed types, large homogenous arrays of primitive values might be
// Calculated for an array of mixed types, large homogeneous arrays of primitive values might be
// processed faster with different thresholds, but this one gives a good baseline for the common
// case.
const ITEMS_SIZE_THRESHOLD: usize = 15;

View File

@ -1,7 +1,7 @@
//! Implementation of json schema output formats specified in <https://json-schema.org/draft/2020-12/json-schema-core.html#rfc.section.12.2>
//!
//! Currently the "flag" and "basic" formats are supported. The "flag" format is
//! idential to the [`JSONSchema::is_valid`] method and so is uninteresting. The
//! identical to the [`JSONSchema::is_valid`] method and so is uninteresting. The
//! main contribution of this module is [`Output::basic`]. See the documentation
//! of that method for more information.