Skip to content

Improve Spelling #316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/clippy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ jobs:
strategy:
matrix:
toolchain: [ stable, nightly ]
include:
# Nightly is only for reference and allowed to fail
- toolchain: nightly
experimental: true
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental || false }}
steps:
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/typos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
branches: [ master ]
pull_request:
merge_group:

name: Spelling Check

jobs:
spelling:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: typos
uses: crate-ci/typos@master
2 changes: 1 addition & 1 deletion riscv-peripheral/src/plic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub unsafe trait Plic: Copy {
const BASE: usize;
}

/// Platform-Level Interrupt Controler (PLIC) peripheral.
/// Platform-Level Interrupt Controller (PLIC) peripheral.
///
/// The RISC-V standard does not specify a fixed location for the PLIC.
/// Thus, each platform must specify the base address of the PLIC on the platform.
Expand Down
2 changes: 1 addition & 1 deletion riscv-rt/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn main() {
if let Ok(target) = RiscvTarget::build(&target, &cargo_flags) {
let width = target.width();

// set environmet variable RISCV_RT_BASE_ISA to the base ISA of the target.
// set environment variable RISCV_RT_BASE_ISA to the base ISA of the target.
println!(
"cargo:rustc-env=RISCV_RT_BASE_ISA={}",
target.llvm_base_isa()
Expand Down
2 changes: 1 addition & 1 deletion riscv-rt/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ cfg_global_asm!(
addi t0, t0, 8
bltu t0, t2, 3b",
"
4: // RAM initilized",
4: // RAM initialized",
);

// INITIALIZE FLOATING POINT UNIT
Expand Down
8 changes: 4 additions & 4 deletions riscv-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@
//!
//! ## `ExceptionHandler`
//!
//! This function is called when exception without defined exception handler is occured.
//! This function is called when exception without defined exception handler is occurred.
//! The exception reason can be decoded from the `mcause`/`scause` register.
//!
//! This function can be redefined in the following way:
Expand All @@ -412,7 +412,7 @@
//!
//! ## Core interrupt handlers
//!
//! This functions are called when corresponding interrupt is occured.
//! This functions are called when corresponding interrupt is occurred.
//! You can define a core interrupt handler with the [`core_interrupt`] attribute.
//! The attribute expects the path to the interrupt source as an argument.
//!
Expand Down Expand Up @@ -441,7 +441,7 @@
//!
//! ## External interrupt handlers
//!
//! This functions are called when corresponding interrupt is occured.
//! This functions are called when corresponding interrupt is occurred.
//! You can define an external interrupt handler with the [`external_interrupt`] attribute.
//! The attribute expects the path to the interrupt source as an argument.
//!
Expand All @@ -453,7 +453,7 @@
//!
//! ## `DefaultHandler`
//!
//! This function is called when interrupt without defined interrupt handler is occured.
//! This function is called when interrupt without defined interrupt handler is occurred.
//! The interrupt reason can be decoded from the `mcause`/`scause` register.
//! If it is an external interrupt, the interrupt reason can be decoded from a
//! target-specific peripheral interrupt controller.
Expand Down
6 changes: 3 additions & 3 deletions riscv/src/register/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ macro_rules! write_only_csr {
};
}

/// Defines field accesor functions for a read-write CSR type.
/// Defines field accessor functions for a read-write CSR type.
#[macro_export]
macro_rules! read_write_csr_field {
($ty:ident,
Expand Down Expand Up @@ -804,7 +804,7 @@ macro_rules! read_write_csr_field {
};
}

/// Defines field accesor functions for a read-only CSR type.
/// Defines field accessor functions for a read-only CSR type.
#[macro_export]
macro_rules! read_only_csr_field {
($ty:ident,
Expand Down Expand Up @@ -899,7 +899,7 @@ macro_rules! read_only_csr_field {
};
}

/// Defines field accesor functions for a write-only CSR type.
/// Defines field accessor functions for a write-only CSR type.
#[macro_export]
macro_rules! write_only_csr_field {
($ty:ident,
Expand Down
2 changes: 2 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default]
extend-ignore-re = ["[Ss][Ii][Ee]", "[Ss][Xx][Ll]"]
Loading