diff --git a/README.md b/README.md index df67f37..6d3e69e 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ rather than an integer. For example we can convert a base 10 number to another base 10 number using a different encoding. ```ruby -base = [:Q, :W, :E, :R, :T, :Y, :U, :I, :O, :U] +base = [:Q, :W, :E, :R, :T, :Y, :U, :I, :O, :P] "10".b(10).to_a(base) #=> [:W, :Q] ``` diff --git a/demo/01_synopsis.md b/demo/01_synopsis.md index d1d43fe..01ae4de 100644 --- a/demo/01_synopsis.md +++ b/demo/01_synopsis.md @@ -37,7 +37,7 @@ To use a custom character set, use an array of characters as the base rather than an integer. For example we can convert a base 10 number to another base 10 number but useing a different encoding. - base = %w[Q W E R T Y U I O U] + base = %w[Q W E R T Y U I O P] "10".b(10).to_a(base) #=> ["W", "Q"]