Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

Capital letter

+2 -2
+2 -2
compiler-core/src/error.rs
··· 5307 5307 // breaks word into n lines based on width. Returns list of new lines and remainder 5308 5308 fn break_word(word: &str, width: usize) -> (Vec<Cow<'_, str>>, &str) { 5309 5309 let mut new_lines: Vec<Cow<'_, str>> = Vec::new(); 5310 - // split on a char boundary so a multi-byte UTF-8 char straddling `width` 5311 - // can't panic. 5310 + // Split on a char boundary so a multi-byte UTF-8 char straddling `width` 5311 + // doesn't cause a panic. 5312 5312 let (first, mut remainder) = word.split_at(word.floor_char_boundary(width)); 5313 5313 new_lines.push(Cow::from(first)); 5314 5314