Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TextSpan.Equals() so that reference equality and length are considered #66

Merged
merged 2 commits into from
Nov 26, 2018

Conversation

nblumhardt
Copy link
Member

The primary purpose of TextSpan.Equals() is in comparing remainders when determining whether a parser consumed input. The implementation and doc/intention diverge, this is what should be considered, but we'll have to be on the lookout for parsers broken by this subtle change (shouldn't be many, if any).

Fixes #64.

Copy link
Member

@KodrAus KodrAus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@nblumhardt nblumhardt merged commit aad61b6 into datalust:dev Nov 26, 2018
@nblumhardt nblumhardt mentioned this pull request Jan 8, 2019
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.

None yet

2 participants