> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Correctness

> [accordion] positive-number-index-of
>
> Flags scala code that look for values that are greater than 0. This ignores the first element, which is most likely a bug. Instead, use indexOf with -1. If the intent is to check the inclusion of a value, use the contains method instead.\
> **Confidence**: MEDIUM


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.