Skip to content

Commit d3c84e5

Browse files
authored
Merge pull request tree-sitter#2751 from stackmystack/doc-correction
doc: fix multi-language program typo
2 parents ddfbbb0 + 665da5e commit d3c84e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/section-2-using-parsers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ const TSLanguage *tree_sitter_ruby();
332332

333333
int main(int argc, const char **argv) {
334334
const char *text = argv[1];
335-
unsigned len = strlen(src);
335+
unsigned len = strlen(text);
336336

337337
// Parse the entire text as ERB.
338338
TSParser *parser = ts_parser_new();

0 commit comments

Comments
 (0)