provides a $ function for Path (#23617)

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
ringabout
2024-05-17 20:22:53 +08:00
committed by GitHub
parent b87732b5f1
commit 4e7c70fd7d
2 changed files with 4 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ export ReadDirEffect, WriteDirEffect
type
Path* = distinct string
template `$`*(x: Path): string =
string(x)
func `==`*(x, y: Path): bool {.inline.} =
## Compares two paths.
##