Skip to content

Commit f5dea61

Browse files
committed
Updated README with new way of opening buffers
1 parent 708be74 commit f5dea61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Don't have a local file but a buffer? Docx handles those to:
5757
require 'docx'
5858

5959
# Create a Docx::Document object from a remote file
60-
doc = Docx::Document.open_buffer(buffer)
60+
doc = Docx::Document.open(buffer)
6161

6262
# Everything about reading is the same as shown above
6363
```

0 commit comments

Comments
 (0)