diff --git a/source/chapter2/21_Protocols.md b/source/chapter2/21_Protocols.md index 9a26c2c5..98143593 100755 --- a/source/chapter2/21_Protocols.md +++ b/source/chapter2/21_Protocols.md @@ -232,7 +232,7 @@ class Dice { self.generator = generator } func roll() -> Int { - return Int(generator.random() * Double(sides)) +1 + return Int(generator.random() * Double(sides)) + 1 } } ```