From 9340c8f0b19c91ea067bfdd05eb0a720b0294d67 Mon Sep 17 00:00:00 2001 From: psvri Date: Sun, 5 Jan 2025 17:16:18 +0530 Subject: [PATCH] Change sanitize_string comments to doc string --- core/translate/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/translate/expr.rs b/core/translate/expr.rs index 0f854b7c9..c339538da 100644 --- a/core/translate/expr.rs +++ b/core/translate/expr.rs @@ -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() }