Update src/Idris/Error.idr

This commit is contained in:
André Videla 2024-01-23 19:46:21 +09:00
parent b48a2d11f0
commit 1631326887

View File

@ -644,7 +644,7 @@ perrorRaw (OperatorBindingMismatch fc {print=p} expected actual opName rhs candi
spellingCandidates = case candidates of
[] => []
[x] => ["Did you mean" <++> enclose "'" "'" (pretty0 x) <++> "?"]
xs => ["Did you mean one of:" <++> hcat (punctuate ", "
xs => ["Did you mean either of:" <++> hcat (punctuate ", "
(map (enclose "'" "'" . pretty0) xs)) <++> "?"]