Skip to content

Commit

Permalink
Minor comment fixes
Browse files Browse the repository at this point in the history
The typo was found with codespell.
  • Loading branch information
Larhzu committed Dec 29, 2024
1 parent 7464731 commit 21d7d93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion linux/lib/xz/xz_dec_lzma2.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ struct lzma_dec {
uint16_t dist_slot[DIST_STATES][DIST_SLOTS];

/*
* Probility trees for additional bits for match distance
* Probability trees for additional bits for match distance
* when the distance is in the range [4, 127].
*/
uint16_t dist_special[FULL_DISTANCES - DIST_MODEL_END];
Expand Down
6 changes: 3 additions & 3 deletions linux/lib/xz/xz_dec_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ static const uint8_t check_sizes[16] = {

/*
* Fill s->temp by copying data starting from b->in[b->in_pos]. Caller
* must have set s->temp.pos to indicate how much data we are supposed
* to copy into s->temp.buf. Return true once s->temp.pos has reached
* s->temp.size.
* must have set s->temp.pos and s->temp.size to indicate how much data
* we are supposed to copy into s->temp.buf. Return true once s->temp.pos
* has reached s->temp.size.
*/
static bool fill_temp(struct xz_dec *s, struct xz_buf *b)
{
Expand Down

0 comments on commit 21d7d93

Please sign in to comment.