Change sanitize_string comments to doc string

This commit is contained in:
psvri
2025-01-05 17:16:18 +05:30
parent a11f4b2b10
commit 9340c8f0b1

View File

@@ -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()
}