Fix :trim_doc example in doc (#13340)

This commit is contained in:
Jean Klingler
2024-02-13 07:39:31 +09:00
committed by sabiwara
parent bf915aa2e7
commit f3e669c471
+1 -1
View File
@@ -1764,7 +1764,7 @@ defmodule File do
## Examples
# Read a utf8 text file which may include BOM
File.stream!("./test/test.txt", encoding: :utf8, trim_bom: true)
File.stream!("./test/test.txt", [:trim_bom, encoding: :utf8])
# Read in 2048 byte chunks rather than lines
File.stream!("./test/test.data", 2048)