Skip to content

Commit 3ff58cc

Browse files
authored
Fix HashDelete return value documentation (#2599)
fix #2596
1 parent 34ba53c commit 3ff58cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/StackExchange.Redis/Interfaces/IDatabase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public interface IDatabase : IRedis, IDatabaseAsync
300300
/// <param name="key">The key of the hash.</param>
301301
/// <param name="hashField">The field in the hash to delete.</param>
302302
/// <param name="flags">The flags to use for this operation.</param>
303-
/// <returns>The number of fields that were removed.</returns>
303+
/// <returns><see langword="true"/> if the field was removed.</returns>
304304
/// <remarks><seealso href="https://redis.io/commands/hdel"/></remarks>
305305
bool HashDelete(RedisKey key, RedisValue hashField, CommandFlags flags = CommandFlags.None);
306306

src/StackExchange.Redis/Interfaces/IDatabaseAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ public interface IDatabaseAsync : IRedisAsync
287287
/// <param name="key">The key of the hash.</param>
288288
/// <param name="hashField">The field in the hash to delete.</param>
289289
/// <param name="flags">The flags to use for this operation.</param>
290-
/// <returns>The number of fields that were removed.</returns>
290+
/// <returns><see langword="true"/> if the field was removed.</returns>
291291
/// <remarks><seealso href="https://redis.io/commands/hdel"/></remarks>
292292
Task<bool> HashDeleteAsync(RedisKey key, RedisValue hashField, CommandFlags flags = CommandFlags.None);
293293

0 commit comments

Comments
 (0)