New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix typo #146
fix typo #146
Conversation
Если переданного ключа нет в передаваемом хеше, то тогда нужно вызвать блок, передав в него первым аргументом хеш, а вторым ключ: | ||
|
||
``` | ||
env = { api_key: 123 } | ||
setup_env(:host, env) { |env, key| env[key] = 'localhost' } # -> { api_key: 123, host: 'lockalhost' } | ||
setup_env(:key, env) { |env, key| env[key] = 'localhost' } # -> { api_key: 123, key: 'lockalhost' } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@usernaimandrey здесь опечатка была специально сделана?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не случайно опечатался, спасибо)
|
||
Метод fetch принемает вторым параметром значение по умалчанию: | ||
Метод `fetch` принимает вторым параметром значение по умолчанию: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
по нашим соглашениям (сорри, щас ссылку не скину) при указании метода или функции как код мы добавляем еще скобки, вот так fetch()
. Давай везде это в уроке добавим. Так студенту будут видеть, что что-то фукнция или метод.
@f4hr у вас конфликты с веткой. разрулите? |
поправил) |
No description provided.