From 5663f9c5888f49d8a6dfc3d5a9402785c06b938c Mon Sep 17 00:00:00 2001 From: Markus Kitsinger Date: Fri, 16 Mar 2018 12:27:27 -0500 Subject: [PATCH] Add syntax highlighting to inline code in stackalloc Just noticed on docs.microsoft.com that these code blocks don't have syntax highlighting, which does not adhere to the style guide --- docs/csharp/language-reference/keywords/stackalloc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/csharp/language-reference/keywords/stackalloc.md b/docs/csharp/language-reference/keywords/stackalloc.md index f9c792bf56322..0398ee795f046 100644 --- a/docs/csharp/language-reference/keywords/stackalloc.md +++ b/docs/csharp/language-reference/keywords/stackalloc.md @@ -18,14 +18,14 @@ ms.author: "wiwagn" # stackalloc (C# Reference) The `stackalloc` keyword is used in an unsafe code context to allocate a block of memory on the stack. -``` +```csharp int* block = stackalloc int[100]; ``` ## Remarks The keyword is valid only in local variable initializers. The following code causes compiler errors. -``` +```csharp int* block; // The following assignment statement causes compiler errors. You // can use stackalloc only when declaring and initializing a local