Skip to content

Commit

Permalink
Format functions in function.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper authored Sep 12, 2023
1 parent 9ad58f4 commit cf944a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/gitql-ast/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fn text_replace(inputs: Vec<Value>) -> Value {
return Value::Text(result);
}

fn text_substring(inputs: Vec<Value>) -> Value {
fn text_substring(inputs: Vec<Value>) -> Value {
let text = inputs[0].as_text();
//according to the specs, a stirng starts at position 1.
//but in Rust, the index of a string starts from 0
Expand Down

0 comments on commit cf944a7

Please sign in to comment.