Skip to content

Commit cad534c

Browse files
author
James Brundage
committed
docs: Adding New-Turtle example ( Fixes #44 )
1 parent c8048d1 commit cad534c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Commands/New-Turtle.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ function New-Turtle
44
.SYNOPSIS
55
Creates a new turtle object.
66
.DESCRIPTION
7-
This function initializes a new turtle object with default properties.
7+
This function initializes a new turtle object with default properties.
8+
.EXAMPLE
9+
$turtle = New-Turtle
10+
$turtle.Square(100).Pattern.Save("$pwd/SquarePattern.svg")
811
#>
912
param()
10-
11-
return [PSCustomObject]@{PSTypeName='Turtle'}
13+
[PSCustomObject]@{PSTypeName='Turtle'}
1214
}

0 commit comments

Comments
 (0)