Skip to content

Commit

Permalink
Fix documentation snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed May 7, 2024
1 parent 74a8182 commit b509180
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ let code = r#"
)
"#;
let mut parser = Parser::new();
parser.set_language(tree_sitter_kotlin::language()).expect("Error loading Kotlin grammar");
parser.set_language(&tree_sitter_kotlin::language()).expect("Error loading Kotlin grammar");
let parsed = parser.parse(code, None);
```
2 changes: 1 addition & 1 deletion bindings/rust/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! ```
//! let code = "";
//! let mut parser = tree_sitter::Parser::new();
//! parser.set_language(tree_sitter_kotlin::language()).expect("Error loading kotlin grammar");
//! parser.set_language(&tree_sitter_kotlin::language()).expect("Error loading kotlin grammar");
//! let tree = parser.parse(code, None).unwrap();
//! ```
//!
Expand Down

0 comments on commit b509180

Please sign in to comment.