From d383bc0f788cf5ab00e3932dc81458145bb64913 Mon Sep 17 00:00:00 2001 From: goodactive Date: Fri, 6 Dec 2024 18:27:51 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: goodactive --- core/api/src/graphql/error.ts | 2 +- prelude/decls/erlang_rules.bzl | 2 +- prelude/java/java_library.bzl | 2 +- prelude/kotlin/kotlin_library.bzl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/api/src/graphql/error.ts b/core/api/src/graphql/error.ts index 5cbb39371e..2d85a71b88 100644 --- a/core/api/src/graphql/error.ts +++ b/core/api/src/graphql/error.ts @@ -421,7 +421,7 @@ export class InvalidPhoneForOnboardingError extends CustomGraphQLError { export class UnauthorizedIPMetadataCountryError extends CustomGraphQLError { constructor(errData: CustomGraphQLErrorData) { super({ - message: "Country not not authorized for quizzes.", + message: "Country not authorized for quizzes.", forwardToClient: true, code: "UNAUTHORIZED_COUNTRY_IP_FOR_QUIZZES", ...errData, diff --git a/prelude/decls/erlang_rules.bzl b/prelude/decls/erlang_rules.bzl index dbee8c448b..5bdecb5926 100644 --- a/prelude/decls/erlang_rules.bzl +++ b/prelude/decls/erlang_rules.bzl @@ -117,7 +117,7 @@ rules_attributes = { developers should be to reduce usages of this field._ **DO NOT ADD ANY MORE USAGES!!** """), "extra_properties": attrs.option(attrs.dict(key = attrs.string(), value = attrs.one_of(attrs.string(), attrs.list(attrs.string()))), default = None, doc = """ - The extra_properties field can be used to specify extra key-value pairs which is are not defined in + The extra_properties field can be used to specify extra key-value pairs which are not defined in [application_opt()](https://www.erlang.org/doc/man/application.html#load-2). The key-value pair will be stored in the applications `.app` file and can be accessed by `file:consult/1`. """), diff --git a/prelude/java/java_library.bzl b/prelude/java/java_library.bzl index 5c3571633d..e3499d88aa 100644 --- a/prelude/java/java_library.bzl +++ b/prelude/java/java_library.bzl @@ -487,7 +487,7 @@ def java_library_impl(ctx: AnalysisContext) -> list[Provider]: shared_library_info, cxx_resource_info, linkable_graph, - # Add an unused default output in case this target is used an an attr.source() anywhere. + # Add an unused default output in case this target is used an attr.source() anywhere. DefaultInfo(default_output = ctx.actions.write("{}/unused.jar".format(ctx.label.name), [])), TemplatePlaceholderInfo(keyed_variables = { "classpath": "unused_but_needed_for_analysis", diff --git a/prelude/kotlin/kotlin_library.bzl b/prelude/kotlin/kotlin_library.bzl index b58fd9fbc9..504b608936 100644 --- a/prelude/kotlin/kotlin_library.bzl +++ b/prelude/kotlin/kotlin_library.bzl @@ -256,7 +256,7 @@ def kotlin_library_impl(ctx: AnalysisContext) -> list[Provider]: shared_library_info, cxx_resource_info, linkable_graph, - # Add an unused default output in case this target is used an an attr.source() anywhere. + # Add an unused default output in case this target is used an attr.source() anywhere. DefaultInfo(default_output = ctx.actions.write("{}/unused.jar".format(ctx.label.name), [])), TemplatePlaceholderInfo(keyed_variables = { "classpath": "unused_but_needed_for_analysis",