Skip to content

Commit f0ed17b

Browse files
Merge pull request #316 from gibbz00/spelling
Improve Spelling
2 parents b112b7a + 015796a commit f0ed17b

File tree

8 files changed

+32
-10
lines changed

8 files changed

+32
-10
lines changed

.github/workflows/clippy.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
strategy:
3838
matrix:
3939
toolchain: [ stable, nightly ]
40+
include:
41+
# Nightly is only for reference and allowed to fail
42+
- toolchain: nightly
43+
experimental: true
4044
runs-on: ubuntu-latest
4145
continue-on-error: ${{ matrix.experimental || false }}
4246
steps:

.github/workflows/typos.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
pull_request:
5+
merge_group:
6+
7+
name: Spelling Check
8+
9+
jobs:
10+
spelling:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v4
15+
- name: typos
16+
uses: crate-ci/typos@master

riscv-peripheral/src/plic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub unsafe trait Plic: Copy {
2424
const BASE: usize;
2525
}
2626

27-
/// Platform-Level Interrupt Controler (PLIC) peripheral.
27+
/// Platform-Level Interrupt Controller (PLIC) peripheral.
2828
///
2929
/// The RISC-V standard does not specify a fixed location for the PLIC.
3030
/// Thus, each platform must specify the base address of the PLIC on the platform.

riscv-rt/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() {
5858
if let Ok(target) = RiscvTarget::build(&target, &cargo_flags) {
5959
let width = target.width();
6060

61-
// set environmet variable RISCV_RT_BASE_ISA to the base ISA of the target.
61+
// set environment variable RISCV_RT_BASE_ISA to the base ISA of the target.
6262
println!(
6363
"cargo:rustc-env=RISCV_RT_BASE_ISA={}",
6464
target.llvm_base_isa()

riscv-rt/src/asm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ cfg_global_asm!(
168168
addi t0, t0, 8
169169
bltu t0, t2, 3b",
170170
"
171-
4: // RAM initilized",
171+
4: // RAM initialized",
172172
);
173173

174174
// INITIALIZE FLOATING POINT UNIT

riscv-rt/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@
389389
//!
390390
//! ## `ExceptionHandler`
391391
//!
392-
//! This function is called when exception without defined exception handler is occured.
392+
//! This function is called when exception without defined exception handler is occurred.
393393
//! The exception reason can be decoded from the `mcause`/`scause` register.
394394
//!
395395
//! This function can be redefined in the following way:
@@ -412,7 +412,7 @@
412412
//!
413413
//! ## Core interrupt handlers
414414
//!
415-
//! This functions are called when corresponding interrupt is occured.
415+
//! This functions are called when corresponding interrupt is occurred.
416416
//! You can define a core interrupt handler with the [`core_interrupt`] attribute.
417417
//! The attribute expects the path to the interrupt source as an argument.
418418
//!
@@ -441,7 +441,7 @@
441441
//!
442442
//! ## External interrupt handlers
443443
//!
444-
//! This functions are called when corresponding interrupt is occured.
444+
//! This functions are called when corresponding interrupt is occurred.
445445
//! You can define an external interrupt handler with the [`external_interrupt`] attribute.
446446
//! The attribute expects the path to the interrupt source as an argument.
447447
//!
@@ -453,7 +453,7 @@
453453
//!
454454
//! ## `DefaultHandler`
455455
//!
456-
//! This function is called when interrupt without defined interrupt handler is occured.
456+
//! This function is called when interrupt without defined interrupt handler is occurred.
457457
//! The interrupt reason can be decoded from the `mcause`/`scause` register.
458458
//! If it is an external interrupt, the interrupt reason can be decoded from a
459459
//! target-specific peripheral interrupt controller.

riscv/src/register/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ macro_rules! write_only_csr {
721721
};
722722
}
723723

724-
/// Defines field accesor functions for a read-write CSR type.
724+
/// Defines field accessor functions for a read-write CSR type.
725725
#[macro_export]
726726
macro_rules! read_write_csr_field {
727727
($ty:ident,
@@ -804,7 +804,7 @@ macro_rules! read_write_csr_field {
804804
};
805805
}
806806

807-
/// Defines field accesor functions for a read-only CSR type.
807+
/// Defines field accessor functions for a read-only CSR type.
808808
#[macro_export]
809809
macro_rules! read_only_csr_field {
810810
($ty:ident,
@@ -899,7 +899,7 @@ macro_rules! read_only_csr_field {
899899
};
900900
}
901901

902-
/// Defines field accesor functions for a write-only CSR type.
902+
/// Defines field accessor functions for a write-only CSR type.
903903
#[macro_export]
904904
macro_rules! write_only_csr_field {
905905
($ty:ident,

typos.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default]
2+
extend-ignore-re = ["[Ss][Ii][Ee]", "[Ss][Xx][Ll]"]

0 commit comments

Comments
 (0)