Array equality, comparison and mismatch (original) (raw)
Paul Sandoz paul.sandoz at oracle.com
Wed Oct 7 15:55:27 UTC 2015
- Previous message: Array equality, comparison and mismatch
- Next message: Array equality, comparison and mismatch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 6 Oct 2015, at 10:58, Chris Hegarty <chris.hegarty at oracle.com> wrote:
It was not immediately obvious to me that the common prefix can be 0. Should this be called out specifically?
When reading the documentation of compare or mismatch or both? mismatch. But maybe this is just me.
I could add something following the paragraph defining the common prefix:
Note that a common prefix length of {@code 0} indicates that the first elements from each array mismatch.
Paul.
- Previous message: Array equality, comparison and mismatch
- Next message: Array equality, comparison and mismatch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]