1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: correct description of windows_volume function (#14726)

This commit is contained in:
Ben 2022-06-09 09:56:58 +02:00 committed by GitHub
parent 4ed9780b80
commit 39e54a508b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@ module os
// windows_volume returns the volume name from the given `path` on a Windows system. // windows_volume returns the volume name from the given `path` on a Windows system.
// An empty string is returned if no Windows volume is present. // An empty string is returned if no Windows volume is present.
// NOTE: An error is returned if the current operating system is not Windows.
// Examples (on a Windows system): // Examples (on a Windows system):
// ```v // ```v
// assert os.windows_volume(r'C:\path\to\file.v') == 'C:' // assert os.windows_volume(r'C:\path\to\file.v') == 'C:'