From f3e669c471fd3aef2bccee85f1a4cb74042e58ab Mon Sep 17 00:00:00 2001 From: Jean Klingler Date: Tue, 13 Feb 2024 07:38:49 +0900 Subject: [PATCH] Fix :trim_doc example in doc (#13340) --- lib/elixir/lib/file.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/file.ex b/lib/elixir/lib/file.ex index ecf4b8550d..df1664dd65 100644 --- a/lib/elixir/lib/file.ex +++ b/lib/elixir/lib/file.ex @@ -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)