From 4b5f5543c22b90237237cc92f2f34bbb4dc88843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 19 Dec 2023 11:07:26 -0800 Subject: [PATCH] Put read_elf_build_id() example code into "Examples" section MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Put the example code for the read_elf_build_id() function into a dedicated "Examples" section, similarly to how the standard library does things. Signed-off-by: Daniel Müller --- src/normalize/buildid.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/normalize/buildid.rs b/src/normalize/buildid.rs index 7a883e31..5db1f815 100644 --- a/src/normalize/buildid.rs +++ b/src/normalize/buildid.rs @@ -135,6 +135,7 @@ impl BuildIdReader for NoBuildIdReader { /// /// Returns [`None`] if the file does not contain a build ID. /// +/// # Examples /// ``` /// # use std::path::Path; /// # let retrieve_path_to_elf_file = || {