Consider the following parity check matrix
$$H = \begin{bmatrix} 1 & 0 & 1 & 1 & 1 & 1 \\ 0 & 1 & 1 & 0 & 0 & 1 \\ 1 & 1 & 0 & 1 & 0 & 1 \end{bmatrix}$$
Since its 1st and 4th column both are identical, the minimum distance of a code is 2. If we compute the syndrome of any received vector $\vec{r}$ and it comes out to be zero, we can't possibly tell whether the received vector is correct or not (as 1st and 4th bit of $\vec{r}$ could be incorrect).
If we can't verify whether the received vector is correct or not, what are linear codes having minimum distance used for?
If the minimum distance is $d=2t+1$ with $t\geq 1$, then the code can correct $t$ errors. The minimum value for $d$ is 3. A code with minimum distance 2 can only detect one error but not correct it.