Skip to content

Commit

Permalink
docs: remove extra right bracket (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiKang6688 authored Jan 12, 2022
1 parent 2dbe30d commit 1f0d5f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apis/stardust/api-spec/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1939,7 +1939,7 @@
"description": "The style value",
"type": "string"
},
"examples": ["theme.getStyle('object', 'title.main', 'fontSize'));\ntheme.getStyle('', '', 'fontSize'));"]
"examples": ["theme.getStyle('object', 'title.main', 'fontSize'));\ntheme.getStyle('', '', 'fontSize');"]
}
},
"definitions": {
Expand Down
4 changes: 2 additions & 2 deletions apis/theme/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export default function theme() {
* @returns {string} The style value
*
* @example
* theme.getStyle('object', 'title.main', 'fontSize'));
* theme.getStyle('', '', 'fontSize'));
* theme.getStyle('object', 'title.main', 'fontSize');
* theme.getStyle('', '', 'fontSize');
*/
getStyle(basePath, path, attribute) {
if (!styleResolverInstanceCache[basePath]) {
Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,8 @@ The search starts at the specified base path and continue upwards until the valu
If possible it will get the attribute's value using the given path.

```js
theme.getStyle('object', 'title.main', 'fontSize'));
theme.getStyle('', '', 'fontSize'));
theme.getStyle('object', 'title.main', 'fontSize');
theme.getStyle('', '', 'fontSize');
```

#### interface: ScalePalette
Expand Down

0 comments on commit 1f0d5f0

Please sign in to comment.