Skip to content

Commit 5e094f4

Browse files
committed
Render links to fields of other classes as Class.field not Class::field
1 parent bf27111 commit 5e094f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/paths.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const referencePath = (name, libraryName, lang) => {
3131
};
3232

3333
/**
34-
Used to convert fill_ to fill() and PShape_width to PShape::width
34+
Used to convert fill_ to fill() and PShape_width to PShape.width
3535
**/
36-
const pathToName = (name) => name.replace(/_$/g, '()').replace(/_/g, '::');
36+
const pathToName = (name) => name.replace(/_$/g, '()').replace(/_/g, '.');
3737

3838
module.exports = {
3939
exampleSlug,

0 commit comments

Comments
 (0)