Skip to content

Commit

Permalink
docs: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 25, 2021
1 parent b5c1acd commit e92b073
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/core/src/partials/inmemory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl InMemorySource {
Default::default()
}

/// Add a partial-template's souce.
/// Add a partial-template's source.
pub fn add<N, S>(&mut self, name: N, source: S) -> bool
where
N: Into<String>,
Expand Down
2 changes: 1 addition & 1 deletion crates/lib/src/stdlib/filters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub use self::url::{UrlDecode, UrlEncode};
#[derive(Clone, ParseFilter, FilterReflection)]
#[filter(
name = "size",
description = "Returns the size of the input. For an array or object this is the number of elemets. For other values it's the length of its string representation.",
description = "Returns the size of the input. For an array or object this is the number of elements. For other values it's the length of its string representation.",
parsed(SizeFilter)
)]
pub struct Size;
Expand Down
6 changes: 3 additions & 3 deletions crates/lib/src/stdlib/filters/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ mod tests {
liquid_core::call_filter!(
Slice,
"I often quote myself. It adds spice to my conversation.",
10,
2
2,
3
)
.unwrap(),
liquid_core::value!("ot")
liquid_core::value!("oft")
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/conformance_ruby/parse_tree_visitor_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn test_variable() {

#[test]
#[should_panic]
fn test_varible_with_filter() {
fn test_variable_with_filter() {
panic!("Implementation specific: parsing API");
}

Expand Down
2 changes: 1 addition & 1 deletion tests/derive_macros_test_filters/mixed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use liquid_core::{
};
use liquid_core::{Value, ValueView};

// Colision with FilterParameters' evaluated struct.
// Collision with FilterParameters' evaluated struct.
#[allow(dead_code)]
struct EvaluatedTestMixedFilterParameters;

Expand Down
2 changes: 2 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
ser = "ser"

0 comments on commit e92b073

Please sign in to comment.