[TANAL-114] Inconsistent docs for 'state' argument to 'schedule' Created: 08/Oct/15 Updated: 09/Oct/15 Resolved: 09/Oct/15
|Reporter:||Stuart Sierra||Assignee:||Nicola Mometto|
In the docstring for schedule, tools/analyzer/passes.clj#L198 says
But the 'state' argument doesn't seem to get initialized with an atom. The object returned by the :state function gets passed through unchanged.
I can only find one usage, in tools/analyzer/passes/add_binding_atom.clj#L18, where the :state function itself creates and returns an atom.
|Comment by Nicola Mometto [ 09/Oct/15 4:20 AM ]|
The documentation is wrong here, the :state function should return an atom.
|Comment by Stuart Sierra [ 09/Oct/15 10:57 AM ]|
Thanks for such a quick response!
|Comment by Nicola Mometto [ 09/Oct/15 1:40 PM ]|