aboutsummaryrefslogtreecommitdiff
path: root/internal/reader/readability/readability.go
diff options
context:
space:
mode:
authorGravatar jvoisin <julien.voisin@dustri.org> 2024-02-29 01:15:08 +0100
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-02-28 19:57:30 -0800
commit1f5c8ce353e48b7eccb37d0d8f214cf24610957d (patch)
tree3f572a3ef60630a4e1b72c234a52aaff0d04b536 /internal/reader/readability/readability.go
parent645a817685b5f07e1e531a429c839eb3843303c7 (diff)
downloadv2-1f5c8ce353e48b7eccb37d0d8f214cf24610957d.tar.gz
v2-1f5c8ce353e48b7eccb37d0d8f214cf24610957d.tar.zst
v2-1f5c8ce353e48b7eccb37d0d8f214cf24610957d.zip
Don't mix up capacity and length
- `make([]a, b)` create a slice of `b` elements `a` - `make([]a, b, c)` create a slice of `0` elements `a`, but reserve space for `c` of them When using `append` on the former, it will result on a slice with `b` leading elements, which is unlikely to be what we want. This commit replaces the two instances where this happens with the latter construct.
Diffstat (limited to 'internal/reader/readability/readability.go')
0 files changed, 0 insertions, 0 deletions