mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix typos
This commit is contained in:
parent
ec03d13742
commit
cab9788e0c
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ Therefore, +case+ statement might be used for conditional matching and unpacking
|
||||||
else
|
else
|
||||||
puts "Unrecognized structure of config"
|
puts "Unrecognized structure of config"
|
||||||
end
|
end
|
||||||
# Prints: "connect with user 'admin'"
|
# Prints: "Connect with user 'admin'"
|
||||||
|
|
||||||
whilst standalone +in+ statement is most useful when expected data structure is known beforehand, to just unpack parts of it:
|
whilst standalone +in+ statement is most useful when expected data structure is known beforehand, to just unpack parts of it:
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ whilst standalone +in+ statement is most useful when expected data structure is
|
||||||
config in {db: {user:}} # will raise if the config's structure is unexpected
|
config in {db: {user:}} # will raise if the config's structure is unexpected
|
||||||
|
|
||||||
puts "Connect with user '#{user}'"
|
puts "Connect with user '#{user}'"
|
||||||
# Prints: "connect with user 'admin'"
|
# Prints: "Connect with user 'admin'"
|
||||||
|
|
||||||
See below for more examples and explanations of the syntax.
|
See below for more examples and explanations of the syntax.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue