From a6e3acdf4fa6ec5249e3adb115515b6903d00382 Mon Sep 17 00:00:00 2001
From: hky1999 <976929993@qq.com>
Date: Wed, 18 Dec 2024 14:10:25 +0800
Subject: [PATCH] [fix] cargo doc error
---
README.md | 4 +++-
src/lib.rs | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 5bd47fa..8a76afe 100644
--- a/README.md
+++ b/README.md
@@ -6,4 +6,6 @@
RISC-V platform-level interrupt controller (PLIC) register definitions and basic operations.
-The official documentation:
\ No newline at end of file
+The official documentation:
+
+Ref:
\ No newline at end of file
diff --git a/src/lib.rs b/src/lib.rs
index f10d91b..1ec1f0e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,5 @@
//! RISC-V Platform-Level Interrupt Controller
-//! https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc
+//!
#![no_std]
#![feature(const_option)]
#![feature(const_nonnull_new)]
@@ -89,6 +89,7 @@ pub trait HartContext {
fn index(self) -> usize;
}
+/// Platform-Level Interrupt Controller.
pub struct Plic {
base: NonNull,
}