Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot authored Aug 22, 2024
1 parent 2c3c385 commit 03ca87f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/30-strings/10-strings-bytes/ru/EXERCISE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Реализуйте функции `nextASCII(b byte) byte` и `prevASCII(b byte) byte`, которые возвращают следующий или предыдущий символ ASCII таблицы соответственно. Например:

```go
nextASCII(byte('a')) // 'b'
prevASCII(byte('b')) // 'a'
string(nextASCII(byte('a'))) // 'b'
string(prevASCII(byte('b'))) // 'a'
```

Допускаем, что в функцию `prevASCII` *не* может прийти нулевой символ, а в функцию `nextASCII` — последний символ ASCII таблицы.

0 comments on commit 03ca87f

Please sign in to comment.