Skip to content

Commit

Permalink
doc: Typo fixes
Browse files Browse the repository at this point in the history
Merges: #131
  • Loading branch information
chrysn authored Oct 17, 2024
2 parents e07288f + 728b500 commit adf8593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gnrc/netreg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type PktsnipPort = crate::msg::v2::SendPort<
///
/// It might be convenient for this to return at some point (in case of short-lived network
/// services). Deregistration could be done and everything returned alright -- but the grant would
/// still be lost. This could be mitigated by accepting a 'static PktsnipPort or a clonable version
/// still be lost. This could be mitigated by accepting a 'static PktsnipPort or a cloneable version
/// thereof -- not that anything could still be recombined after that, but at least it could be
/// used once more (with the risk that messages from the old registration arrive in the new one,
/// which is wrong correctness-wise but safe because it'll still be a pointer to a pktsnip).
Expand Down
2 changes: 1 addition & 1 deletion src/msg/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub struct ReceivePort<TYPE: Send, const TYPENO: u16> {
/// share a shared reference), it would be possible to create a version of the SendPort
/// that counts its clones at runtime and can only be returned when all of them are recombined, or
/// just to create a version that can be cloned at will but never recombined any more. (One way to
/// do the latter would be to add a const boolean type parameter "CLONED"; a `.clonable(self) ->
/// do the latter would be to add a const boolean type parameter "CLONED"; a `.cloneable(self) ->
/// Self` would switch that from false to true, and then copy and clone would be implemented for
/// the result, whereas recombination would only be implemented for the CLONED = false version).
pub struct SendPort<TYPE: Send, const TYPENO: u16> {
Expand Down

0 comments on commit adf8593

Please sign in to comment.