diff --git a/src/array_string.rs b/src/array_string.rs index ce98056..a02100a 100644 --- a/src/array_string.rs +++ b/src/array_string.rs @@ -31,6 +31,7 @@ pub struct ArrayString> { } impl> Default for ArrayString { + /// Return an empty `ArrayString` fn default() -> ArrayString { ArrayString::new() } diff --git a/src/lib.rs b/src/lib.rs index 3a36aa4..b7467da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -942,6 +942,7 @@ impl fmt::Debug for ArrayVec where A::Item: fmt::Debug { } impl Default for ArrayVec { + /// Return an empty array fn default() -> ArrayVec { ArrayVec::new() }