diff --git a/xml/System.IO/Directory.xml b/xml/System.IO/Directory.xml index 4744c0c63e3..e248502f187 100644 --- a/xml/System.IO/Directory.xml +++ b/xml/System.IO/Directory.xml @@ -4055,13 +4055,13 @@ The returned collection is not cached. Each call to the - Retrieves the names of the logical drives on this computer in the form "<drive letter>:\\". - The logical drives on this computer. + Retrieves the names of the logical drives on this computer. + An array of strings representing the logical drive names. :\\" (for example, "C:\\"). On Unix, it returns the paths of all filesystem mount points mounted on a particular machine (for example, "/home/user", "/media/usb"). For a list of common I/O tasks, see [Common I/O Tasks](/dotnet/standard/io/common-i-o-tasks). diff --git a/xml/System/Environment.xml b/xml/System/Environment.xml index 98ce8bf1ca9..18bd3bda93f 100644 --- a/xml/System/Environment.xml +++ b/xml/System/Environment.xml @@ -1421,11 +1421,14 @@ The following example creates environment variables for the - Returns an array of string containing the names of the logical drives on the current computer. - An array of strings where each element contains the name of a logical drive. For example, if the computer's hard drive is the first logical drive, the first element returned is "C:\\". + Retrieves the names of the logical drives on this computer. + An array of strings representing the logical drive names. :\\" (for example, "C:\\"). On Unix, it returns the paths of all filesystem mount points mounted on a particular machine (for example, "/home/user", "/media/usb"). + ## Examples The following example shows how to display the logical drives of the current computer using the method.