diff options
| author | Alex Koval <al3xander.koval@gmail.com> | 2023-12-13 11:39:48 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-12-13 12:17:57 +0000 |
| commit | 36ca99b343ee8847beb4b7e0be112f75af64109f (patch) | |
| tree | 912eab3781577d63a64c10e0a959ce4d36e2658a | |
| parent | 745ab3e4c748ebf3b22278d7ad33c7abcf1f6016 (diff) | |
[ruby/prism] fix typo in docs
https://github.com/ruby/prism/commit/d7fbc09345
| -rw-r--r-- | prism/prism.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/prism.h b/prism/prism.h index 40ba5e554d..869d608c9a 100644 --- a/prism/prism.h +++ b/prism/prism.h @@ -211,7 +211,7 @@ PRISM_EXPORTED_FUNCTION const char * pm_token_type_to_str(pm_token_type_t token_ * pm_node_t *root = pm_parse(&parser); * printf("PARSED!\n"); * - * pm_node_destroy(root); + * pm_node_destroy(&parser, root); * pm_parser_free(&parser); * } * ``` @@ -263,7 +263,7 @@ PRISM_EXPORTED_FUNCTION const char * pm_token_type_to_str(pm_token_type_t token_ * printf("*.s%\n", (int) buffer.length, buffer.value); * * pm_buffer_free(&buffer); - * pm_node_destroy(root); + * pm_node_destroy(&parser, root); * pm_parser_free(&parser); * } * ``` |
