From c6f697d0c32ed943b86efd482e7338cc40112c52 Mon Sep 17 00:00:00 2001 From: Matt Rose <19803303+yamiacat@users.noreply.github.com> Date: Wed, 6 Oct 2021 13:58:27 +0100 Subject: [PATCH] Make "search by file location" examples more specific (#21890) The wording of the examples can lead users to believe `path:DIRECTORY` will search for all folders of that name, rather than a specific folder, so this change makes it clearer it's only the specified folder that is searched Co-authored-by: Laura Coursen --- content/search-github/searching-on-github/searching-code.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/search-github/searching-on-github/searching-code.md b/content/search-github/searching-on-github/searching-code.md index 21f1219b46..5bd93d006c 100644 --- a/content/search-github/searching-on-github/searching-code.md +++ b/content/search-github/searching-on-github/searching-code.md @@ -63,8 +63,8 @@ You can use the `path` qualifier to search for source code that appears at a spe | Qualifier | Example | ------------- | ------------- | path:/ | [**octocat filename:readme path:/**](https://github.com/search?utf8=%E2%9C%93&q=octocat+filename%3Areadme+path%3A%2F&type=Code) matches _readme_ files with the word "octocat" that are located at the root level of a repository. -| path:DIRECTORY | [**form path:cgi-bin language:perl**](https://github.com/search?q=form+path%3Acgi-bin+language%3Aperl&type=Code) matches Perl files with the word "form" in a cgi-bin directory, or in any of its subdirectories. -| path:PATH/TO/DIRECTORY | [**console path:app/public language:javascript**](https://github.com/search?q=console+path%3A%22app%2Fpublic%22+language%3Ajavascript&type=Code) matches JavaScript files with the word "console" in an app/public directory, or in any of its subdirectories (even if they reside in app/public/js/form-validators). +| path:DIRECTORY | [**form path:cgi-bin language:perl**](https://github.com/search?q=form+path%3Acgi-bin+language%3Aperl&type=Code) matches Perl files with the word "form" in the cgi-bin directory, or in any of its subdirectories. +| path:PATH/TO/DIRECTORY | [**console path:app/public language:javascript**](https://github.com/search?q=console+path%3A%22app%2Fpublic%22+language%3Ajavascript&type=Code) matches JavaScript files with the word "console" in the app/public directory, or in any of its subdirectories (even if they reside in app/public/js/form-validators). ## Search by language