From 76f9168c5fa41331c300b01560cbee840f32361f Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 29 Apr 2026 20:21:52 +0200 Subject: [PATCH] Fix docs --- v0/parser.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/v0/parser.c b/v0/parser.c index 76b1aa7..3b42985 100644 --- a/v0/parser.c +++ b/v0/parser.c @@ -136,11 +136,10 @@ static bool parse_import_declaration(Parser* p, Module* module, bool is_public) } /** - * Parses an import declaration. + * Parses a primitive type expression. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param expr The type expression to populate. * @return true if successful, false otherwise. */ static bool parse_primitive_type_expression(Parser* p, TypeExpression* expr) { @@ -191,11 +190,10 @@ static bool parse_primitive_type_expression(Parser* p, TypeExpression* expr) { } /** - * Parses an import declaration. + * Parses an array type expression. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param expr The type expression to populate. * @return true if successful, false otherwise. */ static bool parse_array_type_expression(Parser* p, TypeExpression* expr) { @@ -220,11 +218,10 @@ static bool parse_array_type_expression(Parser* p, TypeExpression* expr) { } /** - * Parses an import declaration. + * Parses a type expression. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param expr The type expression to populate. * @return true if successful, false otherwise. */ static bool parse_type_expression(Parser* p, TypeExpression* expr) { @@ -232,11 +229,11 @@ static bool parse_type_expression(Parser* p, TypeExpression* expr) { } /** - * Parses an import declaration. + * Parses an alias declaration. * * @param p The parser state. - * @param module The module to add the import to. - * @param is_public Whether the import is public. + * @param module The module to add the alias to. + * @param is_public Whether the alias is public. * @return true if successful, false otherwise. */ static bool parse_alias_declaration(Parser* p, Module* module, bool is_public) {