mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-06 00:34:23 +01:00
Change sanitize_string comments to doc string
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user