Skip to content

Commit 7d0437c

Browse files
committed
:doc: Fix custom character set.
1 parent 6af39f2 commit 7d0437c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ rather than an integer. For example we can convert a base 10 number
6868
to another base 10 number using a different encoding.
6969

7070
```ruby
71-
base = [:Q, :W, :E, :R, :T, :Y, :U, :I, :O, :U]
71+
base = [:Q, :W, :E, :R, :T, :Y, :U, :I, :O, :P]
7272

7373
"10".b(10).to_a(base) #=> [:W, :Q]
7474
```

demo/01_synopsis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To use a custom character set, use an array of characters as the base
3737
rather than an integer. For example we can convert a base 10 number
3838
to another base 10 number but useing a different encoding.
3939

40-
base = %w[Q W E R T Y U I O U]
40+
base = %w[Q W E R T Y U I O P]
4141

4242
"10".b(10).to_a(base) #=> ["W", "Q"]
4343

0 commit comments

Comments
 (0)