Skip to content

shared/ConnId: Fix logic error in constructor#264

Merged
geonnave merged 1 commit intolake-rs:mainfrom
chrysn-pull-requests:connid-from-slice-fix-and-doc
May 13, 2024
Merged

shared/ConnId: Fix logic error in constructor#264
geonnave merged 1 commit intolake-rs:mainfrom
chrysn-pull-requests:connid-from-slice-fix-and-doc

Conversation

@chrysn
Copy link
Copy Markdown
Member

@chrysn chrysn commented May 3, 2024

This fixes a copy-paste error stemming from using code from from_int_raw without inverting the conditions, and adds documentation including doctests on this and related methods.


This fixes a bug introduced in #260 that was not covered by tests (because the tests do not try the path where the initiator deliberately chooses a C_I)

@geonnave
Copy link
Copy Markdown
Collaborator

Looks good, left one comment, thanks.

This fixes a copy-paste error stemming from using code from from_int_raw
without inverting the conditions, and adds documentation including
doctests on this and related methods.
@chrysn chrysn force-pushed the connid-from-slice-fix-and-doc branch from 774ee8f to 4192eb1 Compare May 13, 2024 09:19
@geonnave geonnave merged commit 3148374 into lake-rs:main May 13, 2024
@chrysn chrysn deleted the connid-from-slice-fix-and-doc branch May 13, 2024 09:56
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