diff --git a/src/array_string.rs b/src/array_string.rs
index 5aa8d4e..5159dfb 100644
--- a/src/array_string.rs
+++ b/src/array_string.rs
@@ -547,7 +547,7 @@ impl<'de, A> Deserialize<'de> for ArrayString
type Value = ArrayString;
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "a string no more than {} bytes long", A::capacity())
+ write!(formatter, "a string no more than {} bytes long", A::CAPACITY)
}
fn visit_str(self, v: &str) -> Result
diff --git a/src/lib.rs b/src/lib.rs
index 9067a1f..1c176fe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1119,7 +1119,7 @@ impl<'de, T: Deserialize<'de>, A: Array- > Deserialize<'de> for ArrayVec;
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- write!(formatter, "an array with no more than {} items", A::capacity())
+ write!(formatter, "an array with no more than {} items", A::CAPACITY)
}
fn visit_seq(self, mut seq: SA) -> Result
@@ -1129,7 +1129,7 @@ impl<'de, T: Deserialize<'de>, A: Array
- > Deserialize<'de> for ArrayVec