From 6e804d37705e1c0177e10999bc4f0ce3e71b29bc Mon Sep 17 00:00:00 2001 From: chrysn Date: Wed, 26 Jun 2024 12:33:49 +0200 Subject: [PATCH] style: Typo fixes --- examples/coap/README.md | 2 +- examples/coap/src/oluru.rs | 2 +- examples/coap/src/seccontext.rs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/coap/README.md b/examples/coap/README.md index cf090dcf1..37799f4c1 100644 --- a/examples/coap/README.md +++ b/examples/coap/README.md @@ -6,7 +6,7 @@ This application is a work in progress demo of running CoAP with OSCORE/EDHOC se ## Running -* Run on any board with networking, eg. `laze build -b particlex-xenon run`. +* Run on any board with networking, eg. `laze build -b particle-xenon run`. * [Set up networking](../README.md). * Run `pipx run coap-console coap://10.42.0.61 --credentials client.diag`, which establishes a secure CoAP connection using EDHOC and OSCORE, diff --git a/examples/coap/src/oluru.rs b/examples/coap/src/oluru.rs index 7d5e8f655..2df36e98a 100644 --- a/examples/coap/src/oluru.rs +++ b/examples/coap/src/oluru.rs @@ -29,7 +29,7 @@ pub trait PriorityLevel { /// /// The level should not change due to global effects (or internal mutability, if shared access /// is later implemented). If it does, the ordering of an [`OrderedPool`] containing it may become - /// arbitrary, even after the elemnt whose level changed has been removed. + /// arbitrary, even after the element whose level changed has been removed. fn level(&self) -> usize; } diff --git a/examples/coap/src/seccontext.rs b/examples/coap/src/seccontext.rs index 994e5f472..f7eca601b 100644 --- a/examples/coap/src/seccontext.rs +++ b/examples/coap/src/seccontext.rs @@ -88,7 +88,7 @@ impl Into for COwn { /// [*path], Tperm = u32). /// /// FIXME: At the moment, this always represents an authorization that allows everything, and only -/// has runtime information about whether or not stdout is allowd. On the long run, this will +/// has runtime information about whether or not stdout is allowed. On the long run, this will /// likely be a CBOR item with pre-verified structure. #[derive(Debug)] struct AifStaticRest { @@ -196,13 +196,13 @@ impl core::fmt::Display for SecContextState { const LEVEL_ADMIN: usize = 0; const LEVEL_AUTHENTICATED: usize = 1; const LEVEL_ONGOING: usize = 2; -const LEVEL_EMTPY: usize = 3; +const LEVEL_EMPTY: usize = 3; const LEVEL_COUNT: usize = 4; impl crate::oluru::PriorityLevel for SecContextState { fn level(&self) -> usize { match &self.protocol_stage { - SecContextStage::Empty => LEVEL_EMTPY, + SecContextStage::Empty => LEVEL_EMPTY, SecContextStage::EdhocResponderProcessedM1 { .. } => { // If this is ever tested, means we're outbound message limited, so let's try to // get one through rather than pointlessly sending errors