From 4b8bf0abd21475de3979400d28c85dbd9090ddeb Mon Sep 17 00:00:00 2001 From: Techcable Date: Mon, 23 Sep 2024 08:18:09 -0700 Subject: [PATCH] doc: Fix "lazy continuation" in slog::Logger This is a mistake in markdown syntax, caught by a clippy lint: https://rust-lang.github.io/rust-clippy/rust-1.81.0/index.html#/doc_lazy_continuation --- CHANGELOG.md | 2 ++ src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 827db825..73af3604 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +* doc: Fix "lazy continuation" in `slog::Logger` doc + * This mistake was caught by a new lint [`#[warn(clippy::doc_lazy_continuation)]`](https://rust-lang.github.io/rust-clippy/rust-1.81.0/index.html#/doc_lazy_continuation) * Fix some internal warnings * Example: Avoid the new [`#[warn(unexpected_cfgs)]`](https://blog.rust-lang.org/2024/05/06/check-cfg.html) lint. * None of these should affect user crates diff --git a/src/lib.rs b/src/lib.rs index f01cc667..6e55f6d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1069,7 +1069,7 @@ macro_rules! __slog_builtin { /// In an essence `Logger` instance holds two pieces of information: /// /// * drain - destination where to forward logging `Record`s for -/// processing. +/// processing. /// * context - list of key-value pairs associated with it. /// /// The root `Logger` is created with a `Drain` that will be cloned to every