Skip to content

Commit 942e8fe

Browse files
Update caption.md
1 parent b79eb32 commit 942e8fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/components/caption.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ returns
4242
Rendering a content block between the `<caption>` tags
4343

4444
```ruby
45-
table do
45+
table id: 'foo', class: 'bar' do
4646
caption do
4747
plain "table caption"
4848
end
@@ -52,9 +52,9 @@ end
5252
returns
5353

5454
```html
55-
<div id="foo" class="bar">
55+
<table id="foo" class="bar">
5656
<caption>table caption</caption>
57-
</div>
57+
</table>
5858
```
5959

6060
## Example 3

0 commit comments

Comments
 (0)