From 4babbfcb186b5265787256611b6b669a5b60a8ce Mon Sep 17 00:00:00 2001 From: Sasha Jaroshevskii <72662383+jaroshevskii@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:40:45 +0200 Subject: [PATCH] Update Xcode source completion sample Swift prefers camelCase style for functions --- ...etting-code-suggestions-in-your-ide-with-github-copilot.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md b/content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md index d81a79519dde..2a212f61602b 100644 --- a/content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md +++ b/content/copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot.md @@ -445,8 +445,8 @@ This guide demonstrates how to get coding suggestions from {% data variables.pro {% data variables.product.prodname_copilot %} offers coding suggestions as you type. For example, type this function signature in a Swift file: -```shell copy -func CalculateDaysBetweenDates( +```swift copy +func calculateDaysBetweenDates( ``` {% data variables.product.prodname_copilot %} will automatically suggest an entire function body in grayed text. To accept the first line of a suggestion, press Tab. To view the full suggestion, hold Option, and to accept the full suggestion, press Option+Tab.