diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-09 23:42:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-09 23:42:14 -0400 |
| commit | ec1b6f66737f8c3cbc0420715c2c502c7e710081 (patch) | |
| tree | 495aa343982b191149988291901dd6520e757699 /src/ast_render.cpp | |
| parent | d464b2532200de3778ac7362e701791a11150d55 (diff) | |
| download | zig-ec1b6f66737f8c3cbc0420715c2c502c7e710081.tar.gz zig-ec1b6f66737f8c3cbc0420715c2c502c7e710081.zip | |
breaking syntax change: ??x to x.? (#1095)
See #1023
This also renames Nullable/Maybe to Optional
Diffstat (limited to 'src/ast_render.cpp')
| -rw-r--r-- | src/ast_render.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast_render.cpp b/src/ast_render.cpp index 3785cb6ca1..2c8c03b226 100644 --- a/src/ast_render.cpp +++ b/src/ast_render.cpp @@ -50,7 +50,7 @@ static const char *bin_op_str(BinOpType bin_op) { case BinOpTypeAssignBitXor: return "^="; case BinOpTypeAssignBitOr: return "|="; case BinOpTypeAssignMergeErrorSets: return "||="; - case BinOpTypeUnwrapMaybe: return "??"; + case BinOpTypeUnwrapOptional: return "??"; case BinOpTypeArrayCat: return "++"; case BinOpTypeArrayMult: return "**"; case BinOpTypeErrorUnion: return "!"; @@ -66,8 +66,8 @@ static const char *prefix_op_str(PrefixOp prefix_op) { case PrefixOpNegationWrap: return "-%"; case PrefixOpBoolNot: return "!"; case PrefixOpBinNot: return "~"; - case PrefixOpMaybe: return "?"; - case PrefixOpUnwrapMaybe: return "??"; + case PrefixOpOptional: return "?"; + case PrefixOpUnwrapOptional: return "??"; case PrefixOpAddrOf: return "&"; } zig_unreachable(); |
