Skip to content

Commit f3e669c

Browse files
committed
Fix :trim_doc example in doc (#13340)
1 parent bf915aa commit f3e669c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/file.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ defmodule File do
17641764
## Examples
17651765
17661766
# Read a utf8 text file which may include BOM
1767-
File.stream!("./test/test.txt", encoding: :utf8, trim_bom: true)
1767+
File.stream!("./test/test.txt", [:trim_bom, encoding: :utf8])
17681768
17691769
# Read in 2048 byte chunks rather than lines
17701770
File.stream!("./test/test.data", 2048)

0 commit comments

Comments
 (0)