Skip to content

Commit

Permalink
Correct trait codegen example
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil authored May 7, 2020
1 parent 562175b commit f2e6d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traits.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub fn hello_kitty(cat: Cat) -> String {
// There's no need to pass around a trait object here as it can be statically
// resolved. compiled to
// hello_kitty(Cat) ->
// gleam@string:append(<<"the name is: ">>, namedTrait_name(N)).
// gleam@string:append(<<"the name is: ">>, namedTrait_Cat_name(N)).

// We may want to be able have implementations that depend on the
// implementation of their parameter type
Expand Down

0 comments on commit f2e6d73

Please sign in to comment.