From 0f36e5e5d8031496a07cde241d2c932d1e73ea38 Mon Sep 17 00:00:00 2001 From: whatacold Date: Wed, 18 May 2016 16:39:52 +0800 Subject: [PATCH] fix the wrong description of intsetGet(). --- src/intset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intset.c b/src/intset.c index b0a597fc..ac003519 100644 --- a/src/intset.c +++ b/src/intset.c @@ -261,7 +261,7 @@ int64_t intsetRandom(intset *is) { return _intsetGet(is,rand()%intrev32ifbe(is->length)); } -/* Sets the value to the value at the given position. When this position is +/* Get the value at the given position. When this position is * out of range the function returns 0, when in range it returns 1. */ uint8_t intsetGet(intset *is, uint32_t pos, int64_t *value) { if (pos < intrev32ifbe(is->length)) {