Skip to content

Commit

Permalink
Change sanitize_string comments to doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
psvri committed Jan 5, 2025
1 parent a11f4b2 commit 9340c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/translate/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2075,8 +2075,8 @@ pub fn get_name(
}
}

// Sanitaizes a string literal by removing single quote at front and back
// and escaping double single quotes
/// Sanitaizes a string literal by removing single quote at front and back
/// and escaping double single quotes
pub fn sanitize_string(input: &str) -> String {
input[1..input.len() - 1].replace("''", "'").to_string()
}

0 comments on commit 9340c8f

Please sign in to comment.