Prints: ; ^~~~~~
(w: &mut dyn Write, entity: &str)
| 189 | /// Prints: |
| 190 | /// ; ^~~~~~ |
| 191 | fn print_arrow(w: &mut dyn Write, entity: &str) -> fmt::Result { |
| 192 | write!(w, ";")?; |
| 193 | |
| 194 | let indent = entity.len() - entity.trim_start().len(); |
| 195 | if indent != 0 { |
| 196 | write!(w, "{1:0$}^", indent - 1, "")?; |
| 197 | } |
| 198 | |
| 199 | for _ in 0..entity.trim().len() - 1 { |
| 200 | write!(w, "~")?; |
| 201 | } |
| 202 | |
| 203 | writeln!(w) |
| 204 | } |
| 205 | |
| 206 | /// Prints: |
| 207 | /// ; error: [ERROR BODY] |
no test coverage detected