We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f7019 commit 6832931Copy full SHA for 6832931
src/utils.rs
@@ -193,13 +193,13 @@ pub(crate) fn is_attributes_extendable(attrs_str: &str) -> bool {
193
!attrs_str.contains('\n') && !last_line_contains_single_line_comment(attrs_str)
194
}
195
196
-// The width of the first line in s.
+/// The width of the first line in s.
197
#[inline]
198
pub(crate) fn first_line_width(s: &str) -> usize {
199
unicode_str_width(s.splitn(2, '\n').next().unwrap_or(""))
200
201
202
-// The width of the last line in s.
+/// The width of the last line in s.
203
204
pub(crate) fn last_line_width(s: &str) -> usize {
205
unicode_str_width(s.rsplitn(2, '\n').next().unwrap_or(""))
0 commit comments