Function format_symbol

Source
pub fn format_symbol(literal: &str) -> String
Expand description

Formats a string as symbol by quoting and escaping it if necessary.

Note that symbols may be substituted to user aliases. Use format_string() to ensure that the provided string is resolved as a tag/bookmark name, commit/change ID prefix, etc.