Skip to content

Commit

Permalink
fix snake_case for Json.to_compact_utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilliamboswell committed Jan 9, 2025
1 parent e9575aa commit cbc11b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/File.roc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ IOErr : InternalIOErr.IOErr
##
## First encode a `val` using a given `fmt` which implements the ability [Encode.EncoderFormatting](https://www.roc-lang.org/builtins/Encode#EncoderFormatting).
##
## For example, suppose you have a `Json.toCompactUtf8` which implements
## For example, suppose you have a `Json.to_compact_utf8` which implements
## [Encode.EncoderFormatting](https://www.roc-lang.org/builtins/Encode#EncoderFormatting).
## You can use this to write [JSON](https://en.wikipedia.org/wiki/JSON)
## data to a file like this:
Expand All @@ -54,7 +54,7 @@ IOErr : InternalIOErr.IOErr
## File.write!(
## { some: "json stuff" },
## Path.from_str("output.json"),
## Json.toCompactUtf8,
## Json.to_compact_utf8,
## )
## ```
##
Expand Down

0 comments on commit cbc11b1

Please sign in to comment.