diff --git a/_tools/check_docs.ts b/_tools/check_docs.ts index 1f5c5a932501..1a5a4f8dcbde 100644 --- a/_tools/check_docs.ts +++ b/_tools/check_docs.ts @@ -270,9 +270,7 @@ function assertClassDocs(document: DocNodeWithJsDoc) { for (const typeParam of document.classDef.typeParams) { assertHasTypeParamTags(document, typeParam.name); } - if (!document.jsDoc.tags?.some((tag) => tag.kind === "example")) { - assertHasExampleTag(document); - } + assertHasExampleTag(document); for (const property of document.classDef.properties) { if (property.jsDoc === undefined) continue; // this is caught by `deno doc --lint` diff --git a/async/unstable_semaphore.ts b/async/unstable_semaphore.ts index 5a479f757efc..d6a15583606d 100644 --- a/async/unstable_semaphore.ts +++ b/async/unstable_semaphore.ts @@ -13,7 +13,7 @@ interface Node { * @experimental **UNSTABLE**: New API, yet to be vetted. * * @example Usage - * ```ts + * ```ts no-assert * import { Semaphore } from "@std/async/unstable-semaphore"; * * const sem = new Semaphore(2); diff --git a/cli/unstable_progress_bar.ts b/cli/unstable_progress_bar.ts index ea49843a98b6..3c25d8e6984e 100644 --- a/cli/unstable_progress_bar.ts +++ b/cli/unstable_progress_bar.ts @@ -159,6 +159,7 @@ function clamp(value: number, min: number, max: number) { * } * * await bar.stop(); + * ``` */ export class ProgressBar { /** diff --git a/internal/assertion_state.ts b/internal/assertion_state.ts index 228eee85f002..0da0aa355068 100644 --- a/internal/assertion_state.ts +++ b/internal/assertion_state.ts @@ -5,7 +5,7 @@ * Check the test suite internal state * * @example Usage - * ```ts + * ```ts no-assert * import { AssertionState } from "@std/internal"; * * const assertionState = new AssertionState(); diff --git a/streams/unstable_capped_delimiter_stream.ts b/streams/unstable_capped_delimiter_stream.ts index c3cf48f04557..0b52d793f4b8 100644 --- a/streams/unstable_capped_delimiter_stream.ts +++ b/streams/unstable_capped_delimiter_stream.ts @@ -58,7 +58,7 @@ export interface CappedDelimiterOptions { * intermediate chunks instead of waiting for the entire message or risking * excessive memory usage. * - * @example + * @example Usage * ```ts * import { assertEquals } from "@std/assert"; * import {