Merge pull request from sasensi/fix_Path.splitAt()_documentation_example

Fix Path.splitAt() documentation example
This commit is contained in:
Jürg Lehni 2018-09-26 15:09:42 +02:00 committed by GitHub
commit a5683c1184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -13,3 +13,4 @@
- Justin Ridgewell <justinridgewell@gmail.com>
- Andrew Wagenheim <abwagenheim@gmail.com>
- Scott Kieronski <baroes0239@gmail.com>
- Samuel Asensi <asensi.samuel@gmail.com>

View file

@ -1012,7 +1012,7 @@ var Path = PathItem.extend(/** @lends Path# */{
* path.strokeColor = 'black';
*
* // Split the path half-way:
* var path2 = path.splitAt(path2.length / 2);
* var path2 = path.splitAt(path.length / 2);
*
* // Give the resulting path a red stroke-color
* // and move it 20px to the right: