Skip to content

Commit

Permalink
Update type
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Dec 11, 2024
1 parent 3a32ed7 commit e34bdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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_elm::language()).expect("Error loading elm grammar");
//! parser.set_language(&tree_sitter_elm::language()).expect("Error loading elm grammar");
//! let tree = parser.parse(code, None).unwrap();
//! ```
//!
Expand Down Expand Up @@ -46,7 +46,7 @@ mod tests {
fn test_can_load_grammar() {
let mut parser = tree_sitter::Parser::new();
parser
.set_language(super::language())
.set_language(&super::language())
.expect("Error loading elm language");
}
}

0 comments on commit e34bdc5

Please sign in to comment.