cairo_lang_formatter

Function format_string

Source
pub fn format_string(db: &dyn SyntaxGroup, content: String) -> String
Expand description

Formats Cairo code given as a string.

§Arguments

  • db - The syntax group.
  • content - The code to format.

§Returns

  • String - The formatted code.