1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +03:00

Document the returned array.

This commit is contained in:
Rob Rix 2015-10-19 11:31:48 -04:00
parent 7236a46679
commit 91342a0431

View File

@ -119,6 +119,7 @@ extension UnannotatedTerm: Arbitrary {
: k.map { ($0, $1.1) })))
}
}
/// If the permutation is unchanged, we cannot shrink any further.
return equal(term.term, shrunk)
? []
: [ UnannotatedTerm(term: shrunk) ]