File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -995,26 +995,26 @@ pub fn new_primitive_decoder(
995
995
} )
996
996
}
997
997
998
- /// Create a decoder that can refer to itself, useful for decoding for deeply
998
+ /// Create a decoder that can refer to itself, useful for decoding deeply
999
999
/// nested data.
1000
1000
///
1001
1001
/// Attempting to create a recursive decoder without this function could result
1002
- /// in an infinite loop. If you are using `field` or other `use`able function
1002
+ /// in an infinite loop. If you are using `field` or other `use`able functions
1003
1003
/// then you may not need to use this function.
1004
1004
///
1005
1005
/// ```gleam
1006
1006
/// import gleam/dynamic
1007
- /// import decode/zero.{type Decoder}
1007
+ /// import gleam/dynamic/decode
1008
1008
///
1009
1009
/// type Nested {
1010
1010
/// Nested(List(Nested))
1011
1011
/// Value(String)
1012
1012
/// }
1013
1013
///
1014
- /// fn nested_decoder() -> Decoder(Nested) {
1015
- /// use <- zero .recursive
1016
- /// zero .one_of(zero .string |> zero .map(Value), [
1017
- /// zero .list(nested_decoder()) |> zero .map(Nested),
1014
+ /// fn nested_decoder() -> decode. Decoder(Nested) {
1015
+ /// use <- decode .recursive
1016
+ /// decode .one_of(decode .string |> decode .map(Value), [
1017
+ /// decode .list(nested_decoder()) |> decode .map(Nested),
1018
1018
/// ])
1019
1019
/// }
1020
1020
/// ```
You can’t perform that action at this time.
0 commit comments