mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 21:52:23 +00:00
1 parent
38080275d4
commit
6794ea565f
1 file changed
+1
-1
@@ -28,7 +28,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
/// use conduwuit_core::utils::debug::slice_truncated;
|
||||
///
|
||||
/// #[tracing::instrument(fields(foos = slice_truncated(foos, 42)))]
|
||||
/// fn bar(foos: &[&str]);
|
||||
/// fn bar(foos: &[&str]) {};
|
||||
/// ```
|
||||
pub fn slice_truncated<T: fmt::Debug>(
|
||||
slice: &[T],
|
||||
|
||||
Reference in new issue
Block a user