Skip to content

Commit 7b7d038

Browse files
committed
fix Access::can_write
1 parent 4c7e0cb commit 7b7d038

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

svd-rs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
10+
- Fix typo in Access::can_write
11+
812
## [v0.11.0] - 2021-10-02
913
- Splitted from `svd-parser`
1014

svd-rs/src/access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl Access {
3535

3636
/// Whether the register/field is writable at least once.
3737
pub fn can_write(self) -> bool {
38-
matches!(self, Self::ReadOnly)
38+
!matches!(self, Self::ReadOnly)
3939
}
4040
}
4141

0 commit comments

Comments
 (0)