Function rustc_errors::markdown::term::write_wrapping
source · fn write_wrapping<B: Write>(
buf: &mut B,
text: &str,
indent: usize,
link_url: Option<&str>
) -> Result<()>
Expand description
Change to be generic on Write for testing. If we have a link URL, we don’t count the extra tokens to make it clickable.