Skip to content

Commit

Permalink
Fix comment.
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Ross-Perkins <[email protected]>
  • Loading branch information
zygoloid and jonmeow authored Oct 21, 2024
1 parent 9fca859 commit fc0bd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchain/lex/tokenized_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class TokenizedBuffer : public Printable<TokenizedBuffer> {
// Payload values are typically ID types for which we create at most one per
// token, so we ensure that `token_payload_` is large enough to fit any
// token index. Stores to this field may overflow, but we produce an error
// in `Lexer::LexFileEnd` if the file has more than `MaxTokens` tokens, so
// in `Lexer::Finalize` if the file has more than `MaxTokens` tokens, so
// this value never overflows if lexing succeeds.
unsigned token_payload_ : PayloadBits;
static_assert(MaxTokens <= 1 << PayloadBits,
Expand Down

0 comments on commit fc0bd90

Please sign in to comment.