Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/elixir/lib/port.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule Port do

The port can be opened through four main mechanisms.

As a short summary, prefer to using the `:spawn` and `:spawn_executable`
As a short summary, prefer to use the `:spawn` and `:spawn_executable`
options mentioned below. The other two options, `:spawn_driver` and `:fd`
are for advanced usage within the VM. Also consider using `System.cmd/3`
if all you want is to execute a program and retrieve its return value.
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/src/elixir_map.erl
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,6 @@ format_error(ignored_struct_key_in_struct) ->
"key :__struct__ is ignored when using structs";
format_error({deprecated_update, Struct, MapUpdate}) ->
io_lib:format("the struct update syntax is deprecated:\n\n~ts\n\n"
"Instead, prefer to pattern matching on structs when the variable is first defined and "
"Instead, prefer to use pattern matching on structs when the variable is first defined and "
"use the regular map update syntax instead:\n\n~ts\n",
['Elixir.Macro':to_string({'%', [], [Struct, MapUpdate]}), 'Elixir.Macro':to_string(MapUpdate)]).