From 665da5e23032ba7a1891e9f13fdc5ab715ae0f35 Mon Sep 17 00:00:00 2001 From: Firas al-Khalil Date: Mon, 6 Nov 2023 13:18:09 +0100 Subject: [PATCH] doc: fix multi-language program typo --- docs/section-2-using-parsers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/section-2-using-parsers.md b/docs/section-2-using-parsers.md index 5106a49c..97719c4f 100644 --- a/docs/section-2-using-parsers.md +++ b/docs/section-2-using-parsers.md @@ -332,7 +332,7 @@ const TSLanguage *tree_sitter_ruby(); int main(int argc, const char **argv) { const char *text = argv[1]; - unsigned len = strlen(src); + unsigned len = strlen(text); // Parse the entire text as ERB. TSParser *parser = ts_parser_new();