Skip to content

Commit

Permalink
docs: added code documentation to several procedures
Browse files Browse the repository at this point in the history
FossilOrigin-Name: c22508d3dd4a632c65cad23bce38b9e961f4b03068fd751bbb6cc4f5238692be
  • Loading branch information
thindil committed Feb 6, 2024
1 parent 773d109 commit 8e9a68a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,17 @@ type
description*: string

proc `$`*(path: Path): string =
## Convert Path type to string.
##
## * path - the path variable which will be converted to string
##
## The parameter path converted to a string
return path.string

proc len*(path: Path): Natural =
## Get the length of the path variable
##
## * path - the path variable which length will be count
##
## The lenght of the parameter path
return ($path).len

0 comments on commit 8e9a68a

Please sign in to comment.