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

spec-tools.data-spec/spec has a wrong assert #261

Open
p-himik opened this issue Sep 25, 2021 · 0 comments
Open

spec-tools.data-spec/spec has a wrong assert #261

p-himik opened this issue Sep 25, 2021 · 0 comments

Comments

@p-himik
Copy link

p-himik commented Sep 25, 2021

Its 1-arity signature, followed by the assert:

[{data :spec name :name nested? ::nested? :as opts}]
(assert spec "missing :spec predicate in data-spec")

Notice how it asserts spec instead of data. I got confused by it more than once myself while reading sources, seeing spec in one place and data in another.

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

No branches or pull requests

1 participant