mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-26 06:46:27 +00:00
Merge pull request #5896 from meilisearch/fix-doc-template
Document template: Correctly render when indexing first item in array
This commit is contained in:
@ -304,7 +304,7 @@ impl ArrayView for ParseableArray<'_> {
|
||||
|
||||
fn get(&self, index: i64) -> Option<&dyn ValueView> {
|
||||
let index = convert_index(index, self.size());
|
||||
if index <= 0 {
|
||||
if index < 0 {
|
||||
return None;
|
||||
}
|
||||
let v = self.0.get(index as usize)?;
|
||||
|
Reference in New Issue
Block a user