blueprinter icon indicating copy to clipboard operation
blueprinter copied to clipboard

Incorrect Transform Documentation

Open YSavir opened this issue 3 years ago • 1 comments

The documentation for the current version (0.25.3 at time of writing) has the following instructions for transform:

Whatever is returned from this transform method will end up being the resulting hash passed to serialization.

This is incorrect. The return value doesn't seem to be used at all, and any transformations need to be made on the hash argument directly. The example is set up correctly using merge!, but I assumed the focus was still on returning a the mutated hash and not on the mutation itself. This can be seen in the source code here.

YSavir avatar Nov 03 '21 16:11 YSavir

Welcome to make a PR to update this doc

philipqnguyen avatar Nov 03 '21 16:11 philipqnguyen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 01 '23 01:11 github-actions[bot]