dotnet / dotnet/dotnet-api-docs

Source code typo

Open
#10,710 1 comment 0 reactions 0 assignees View on GitHub
area-System.IO Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Hi,

i do like your documentation very much. Maybe we can improve it together, plkease check my suggestion, i think it is just a typo/copy and paste error:

CURRENT source code line:
if (path.Equals(Directory.GetCurrentDirectory()))

SUGGESTED source code line:
if (target.Equals(Directory.GetCurrentDirectory()))

Kind regards
AL

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 3a9ac029-d61c-90af-fadf-5d01c40ef2ef
* Version Independent ID: 4c01f755-9830-7fce-1ec0-28caa161819b
* Content: [Directory.GetCurrentDirectory Method (System.IO)](https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.getcurrentdirectory?view=net-9.0#system-io-directory-getcurrentdirectory)
* Content Source: [xml/System.IO/Directory.xml](https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.IO/Directory.xml)
* Service: **dotnet-api**
* Sub-service: **system.io**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.