From acbd79a5cfeac7c705bf2c686b2bb1e12205f150 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 14 Apr 2019 17:38:22 +0000 Subject: Document modules --- gen/src/any.erl | 4 ++-- src/any.gleam | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/src/any.erl b/gen/src/any.erl index 62f1a77..62be0c6 100644 --- a/gen/src/any.erl +++ b/gen/src/any.erl @@ -1,7 +1,7 @@ -module(any). -compile(no_auto_import). --export([from/1, unsafeCoerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, tuple/1, field/2]). +-export([from/1, unsafe_coerce/1, string/1, int/1, float/1, atom/1, bool/1, thunk/1, list/2, tuple/1, field/2]). list_module() -> list. @@ -9,7 +9,7 @@ list_module() -> from(A) -> gleam__stdlib:identity(A). -unsafeCoerce(A) -> +unsafe_coerce(A) -> gleam__stdlib:identity(A). string(A) -> diff --git a/src/any.gleam b/src/any.gleam index a2fa418..a4ef0d4 100644 --- a/src/any.gleam +++ b/src/any.gleam @@ -21,7 +21,7 @@ pub external fn from(a) -> Any = "gleam__stdlib" "identity"; // This is an escape hatch for the type system that may be useful when wrapping // native Erlang APIs. It is to be used as a last measure only. // -pub external fn unsafeCoerce(a) -> b = "gleam__stdlib" "identity"; +pub external fn unsafe_coerce(a) -> b = "gleam__stdlib" "identity"; pub external fn string(Any) -> Result(String, String) = "gleam__stdlib" "decode_string" -- cgit v1.2.3