Skip to content

Commit 8a34a1f

Browse files
Merge pull request #313 from PragTob/fix-p-note
Refer to `p` for what it is (a Kernel method not a keyword)
2 parents eb2f360 + 4c473d4 commit 8a34a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/components/paragraph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Show [specs](/spec/usage/components/paragraph_spec.rb)
44

5-
The HTML `<p>` tag implemented in ruby. This is a workaround because the single `p` is a reserved keyword in Ruby (directly writes `obj.inspect` followed by a newline to the program’s standard output, e.g. `p foo` equals `puts foo.inspect`).
5+
The HTML `<p>` tag implemented in ruby. This is a workaround because the single `p` is a [`Kernel` method in Ruby](https://ruby-doc.org/core-2.6.5/Kernel.html#method-i-p) (directly writes `obj.inspect` followed by a newline to the program’s standard output, e.g. `p foo` equals `puts foo.inspect`).
66

77
## Parameters
88

0 commit comments

Comments
 (0)