Skip to content

docs(voting): fix field names in README to match actual code#60

Open
giwaov wants to merge 2 commits intoarcium-hq:mainfrom
giwaov:fix/voting-readme-field-names
Open

docs(voting): fix field names in README to match actual code#60
giwaov wants to merge 2 commits intoarcium-hq:mainfrom
giwaov:fix/voting-readme-field-names

Conversation

@giwaov
Copy link
Contributor

@giwaov giwaov commented Feb 23, 2026

Summary

Fixed incorrect field names in Voting README documentation that didn't match the actual code implementation.

Issue

The README used yes_count and no_count throughout the documentation, but the actual VoteStats struct in encrypted-ixs/src/lib.rs defines fields as yes and no.

This caused confusion for developers trying to follow the code examples.

Changes

  • Updated all occurrences of yes_countyes
  • Updated all occurrences of no_countno

Files Changed

  • voting/README.md (lines 80, 101-102, 119, 121, 159)

Verification

Confirmed against actual struct definition in:

  • voting/encrypted-ixs/src/lib.rs lines 8-11
pub struct VoteStats {
    yes: u64,
    no: u64,
}

Impact

  • Fixes documentation accuracy
  • Prevents developer confusion
  • Ensures code examples compile correctly

giwaov and others added 2 commits February 23, 2026 12:28
The Voting README incorrectly referenced field names as 'yes_count' and 'no_count',
but the actual VoteStats struct in encrypted-ixs/src/lib.rs uses 'yes' and 'no'.

This caused confusion for developers trying to follow the documentation examples.

Changes:
- Updated all references from yes_count to yes
- Updated all references from no_count to no
- Affects lines: 80, 101-102, 119, 121, 159

Verified against actual code in:
- voting/encrypted-ixs/src/lib.rs (struct VoteStats definition)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants