From 91b329ac91bbbe5ac1b670c1e653c70af0d4c389 Mon Sep 17 00:00:00 2001 From: Pavlo Ivashkov Date: Wed, 6 Oct 2021 02:26:07 +0300 Subject: [PATCH] Update instructions for bit enumeration --- exercises/concept/bomb-defuser/.docs/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/bomb-defuser/.docs/instructions.md b/exercises/concept/bomb-defuser/.docs/instructions.md index 302e1df1f..19d1da27f 100644 --- a/exercises/concept/bomb-defuser/.docs/instructions.md +++ b/exercises/concept/bomb-defuser/.docs/instructions.md @@ -41,7 +41,7 @@ makeShuffle( which takes as input a closure that flips two wires and a closure that rotates the three wires and returns a closure. This returned closure takes the ID number of the stink-bomb and the order of the three wires, and then computes the order the wires need to be cut. This is computed as follows: -For each bit in the ID number, starting with the leftmost bit, you will apply the `flipper` closure to the wires tuple if the bit is a 0 and you will apply the rotator closure if it is a 1 giving the new state of the wires. After the appropriate closures have been applied for all eight bits of the ID, the final state of the wires is the order they need to be cut in. +For each bit in the ID number, starting with the least significant bit, you will apply the `flipper` closure to the wires tuple if the bit is a 0 and you will apply the rotator closure if it is a 1 giving the new state of the wires. After the appropriate closures have been applied for all eight bits of the ID, the final state of the wires is the order they need to be cut in. ```swift let shuffler = makeShuffle(flipper: flip, rotator: rotate)