From 482138d91e6f8d66498442ebf2554edc55935d00 Mon Sep 17 00:00:00 2001 From: pandaadir05 Date: Fri, 21 Nov 2025 14:08:31 +0200 Subject: [PATCH] Fix rustdoc warnings by escaping [pid] in documentation comments --- ghost-core/src/memory.rs | 4 ++-- ghost-core/src/thread.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost-core/src/memory.rs b/ghost-core/src/memory.rs index 1d6b8d6..be8b894 100644 --- a/ghost-core/src/memory.rs +++ b/ghost-core/src/memory.rs @@ -837,7 +837,7 @@ mod platform { /// # Platform Support /// /// - **Windows**: Uses VirtualQueryEx to enumerate regions. -/// - **Linux**: Parses /proc/[pid]/maps. +/// - **Linux**: Parses /proc/\[pid\]/maps. /// - **macOS**: Not yet implemented. pub fn enumerate_memory_regions(pid: u32) -> anyhow::Result> { platform::enumerate_memory_regions(pid) @@ -851,7 +851,7 @@ pub fn enumerate_memory_regions(pid: u32) -> anyhow::Result> { /// # Platform Support /// /// - **Windows**: Uses ReadProcessMemory API. -/// - **Linux**: Reads from /proc/[pid]/mem. +/// - **Linux**: Reads from /proc/\[pid\]/mem. /// - **macOS**: Not yet implemented. pub fn read_process_memory(pid: u32, address: usize, size: usize) -> anyhow::Result> { platform::read_process_memory(pid, address, size) diff --git a/ghost-core/src/thread.rs b/ghost-core/src/thread.rs index aad4455..2816f8b 100644 --- a/ghost-core/src/thread.rs +++ b/ghost-core/src/thread.rs @@ -970,7 +970,7 @@ mod platform { /// # Platform Support /// /// - **Windows**: Uses CreateToolhelp32Snapshot with NtQueryInformationThread for start addresses. -/// - **Linux**: Parses /proc/[pid]/task/ directory. +/// - **Linux**: Parses /proc/\[pid\]/task/ directory. /// - **macOS**: Not yet implemented. /// /// # Returns