• uuj8za@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    12 days ago

    tl;dr arr[len(arr)] is wrong; arr[len(arr)-1] is right because Go uses zero-based indexes like a bunch of other languages.