Skip to main content

strip_bom

Function strip_bom 

Source
pub fn strip_bom(text: &str) -> &str
Expand description

Removes a byte order mark from the start of the text, as rustc does for a source file. Some editors add one, and it is not a part of the text: the first character that is left is at line 1, col 1.