aboutsummaryrefslogtreecommitdiff
path: root/src/definitions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/definitions.rs')
-rw-r--r--src/definitions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/definitions.rs b/src/definitions.rs
index 485609c..42fb26e 100644
--- a/src/definitions.rs
+++ b/src/definitions.rs
@@ -48,10 +48,10 @@ pub enum Action {
#[inline(always)]
pub fn unpack(delta: u8) -> (State, Action) {
(
- // Action is stored in bottom 4 bits
+ // State is stored in bottom 4 bits
unsafe { ::std::mem::transmute(delta & 0x0f) },
- // State is stored in top 4 bits
+ // Action is stored in top 4 bits
unsafe { ::std::mem::transmute(delta >> 4) },
)
}