Skip to content

Commit

Permalink
Clean up HashSet comment and Terminal typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbarnes committed Dec 16, 2024
1 parent 365d814 commit 6965b68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/terminal/terminal.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ typedef struct {
bool can_be_truncated;
} TermInputBuffer;

typedef struct Terminal {
typedef struct {
TermFeatureFlags features;
unsigned int width; // Terminal width (in columns)
unsigned int height; // Terminal height (in rows)
Expand Down
5 changes: 2 additions & 3 deletions src/util/hashset.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
#include <stddef.h>
#include "macros.h"

// This is a container type for holding a set of related strings.
// It uses hashing for primary lookups and separate chaining for
// collision resolution.
// A container type for holding a set of strings, using hashing for
// primary lookups and separate chaining for collision resolution.
typedef struct {
struct HashSetEntry **table;
size_t table_size;
Expand Down

0 comments on commit 6965b68

Please sign in to comment.