From 0b333083c7ca3e343e37fb6b3b407063bbf08ba3 Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Fri, 1 Dec 2023 10:46:20 -0800 Subject: [PATCH] Fix small typo in basic extending typespec docs (#2714) --- docs/extending-typespec/basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.