diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-09-19 07:22:24 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-09-19 07:22:24 -0300 |
commit | 0c39a022b0b432afff240c5624dadee00da8d175 (patch) | |
tree | 0e1e62fb36f3ffffd7d492ec762860c08e3c9ff3 | |
parent | e39e84cb3fcdfe1a7f8d8255a0986d435ce42773 (diff) | |
parent | ccbf1597b793e8de11b2cd19dd18f18d0b0b2182 (diff) | |
download | rails-0c39a022b0b432afff240c5624dadee00da8d175.tar.gz rails-0c39a022b0b432afff240c5624dadee00da8d175.tar.bz2 rails-0c39a022b0b432afff240c5624dadee00da8d175.zip |
Merge pull request #21674 from amitsuroliya/comment_fix
Replace `#=>` with `# =>` [ci skip]
-rw-r--r-- | activesupport/lib/active_support/core_ext/securerandom.rb | 4 | ||||
-rw-r--r-- | guides/source/active_record_validations.md | 2 | ||||
-rw-r--r-- | guides/source/api_documentation_guidelines.md | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/core_ext/securerandom.rb b/activesupport/lib/active_support/core_ext/securerandom.rb index 6cdbea1f37..98cf7430f7 100644 --- a/activesupport/lib/active_support/core_ext/securerandom.rb +++ b/activesupport/lib/active_support/core_ext/securerandom.rb @@ -10,8 +10,8 @@ module SecureRandom # # The result may contain alphanumeric characters except 0, O, I and l # - # p SecureRandom.base58 #=> "4kUgL2pdQMSCQtjE" - # p SecureRandom.base58(24) #=> "77TMHrHJFvFDwodq8w7Ev2m7" + # p SecureRandom.base58 # => "4kUgL2pdQMSCQtjE" + # p SecureRandom.base58(24) # => "77TMHrHJFvFDwodq8w7Ev2m7" # def self.base58(n = 16) SecureRandom.random_bytes(n).unpack("C*").map do |byte| diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index dadac7fb54..7f88c13dc0 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -242,7 +242,7 @@ end >> person = Person.new >> person.valid? ->> person.errors.details[:name] #=> [{error: :blank}] +>> person.errors.details[:name] # => [{error: :blank}] ``` Using `details` with custom validators is covered in the [Working with diff --git a/guides/source/api_documentation_guidelines.md b/guides/source/api_documentation_guidelines.md index a4feff798d..526bf768cc 100644 --- a/guides/source/api_documentation_guidelines.md +++ b/guides/source/api_documentation_guidelines.md @@ -239,7 +239,7 @@ You can quickly test the RDoc output with the following command: ``` $ echo "+:to_param+" | rdoc --pipe -#=> <p><code>:to_param</code></p> +# => <p><code>:to_param</code></p> ``` ### Regular Font |