diff --git a/docs/extending-typespec/basics.md b/docs/extending-typespec/basics.md index fa4b0ad6f..ad4ece187 100644 --- a/docs/extending-typespec/basics.md +++ b/docs/extending-typespec/basics.md @@ -102,7 +102,7 @@ export const $lib = createTypeSpecLibrary({ } as const); // Optional but convenient, those are meant to be used locally in your library. -export const { reportDiagnostic, createDiagnostic, createStateSymbol } = myLibrary; +export const { reportDiagnostic, createDiagnostic, createStateSymbol } = $lib; ``` Diagnostics are used for linters and decorators which are covered in subsequent topics.