Skip to content

Commit a9486bf

Browse files
committed
Made errors / constants / report enum pub
1 parent d711282 commit a9486bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zon_get_fields.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const std = @import("std");
2929
/// call `walkAst`, which is a recursive function,
3030
/// and `zon_fld_path_len_limit` is the recursion
3131
/// depth limit.
32-
const zon_fld_path_len_limit = 20;
32+
pub const zon_fld_path_len_limit = 20;
3333

34-
const ZonGetFieldsError = error
34+
pub const ZonGetFieldsError = error
3535
{
3636
// errors common for `fn getFieldVal` and `fn zonToStruct`:
3737
PathElementNotStruct, // One of the path elements (other than the last one) is not a sub-struct in ZON (AST).
@@ -612,7 +612,7 @@ test "getFieldVal big test"
612612
// ---------------------------------------------------------
613613

614614
/// Was the field / array element / slice element filled or not
615-
const ZonFieldResult = enum
615+
pub const ZonFieldResult = enum
616616
{
617617
not_filled, // Field / array element / slice element was not filled
618618
partially_filled, // This element of array or slice was filled, but not all elements were filled

0 commit comments

Comments
 (0)