Skip to content

slices.Delete #1645

Closed
Closed
@Deleplace

Description

@Deleplace

Hello, while researching for this Go proposal I noticed this code:

slices.Delete(cacheEntry, i, i)

which probably doesn't behave as intended and should look like this instead:

cacheEntry = slices.Delete(cacheEntry, i, i+1)

(2 differences: using the returned value, and deleting +1 element instead of zero).

I have not tried to execute it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions