Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clippy_lints/src/strlen_on_c_strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ declare_clippy_lint! {
/// and suggest calling `as_bytes().len()` or `to_bytes().len()` respectively instead.
///
/// ### Why is this bad?
/// This avoids calling an unsafe `libc` function.
/// Currently, it also avoids calculating the length.
/// `libc::strlen` requires an unsafe block, which we don't really need if all
/// we want to know is the length of the string.
///
/// ### Example
/// ```rust, ignore
Expand Down