Clarify comments

This commit is contained in:
Kamran Khan
2020-12-01 10:13:25 -08:00
parent bbeec0118e
commit dc95310fc0

View File

@@ -132,10 +132,10 @@ impl TryFrom<&[u8]> for APDU {
}; };
if payload.is_empty() { if payload.is_empty() {
// This branch is for Lc = 0 // Lc is zero-bytes in length
apdu.case_type = ApduType::Instruction; apdu.case_type = ApduType::Instruction;
} else { } else {
// Lc is not equal to zero, let's figure out how long it is // Lc is not zero-bytes in length, let's figure out how long it is
let byte_0 = payload[0]; let byte_0 = payload[0];
if payload.len() == 1 { if payload.len() == 1 {
// There is only one byte in the payload, that byte cannot be Lc because that would // There is only one byte in the payload, that byte cannot be Lc because that would