Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit 2b435e4

Browse files
authored
Merge pull request #74 from myitcv/blog_fixes
Fix up comment in blog code
2 parents 14548f4 + 8f410fb commit 2b435e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/blog/2017_04_16/foo_bar.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ type FooBarState struct {
3737
}
3838

3939
// FooBar is the constructor for a FooBar component. Given that this component
40-
// can take props (can, not must), we add a parameter of type *FooBarProps
40+
// can take props (can, not must), we add a parameter of type FooBarProps
4141
//
4242
func FooBar(p FooBarProps) *FooBarElem {
4343
// every component constructor must call this function
4444
return &FooBarElem{Element: r.CreateElement(buildFooBar, p)}
4545
}
4646

4747
// Render is a required method on all React components. Notice that the method
48-
// is declared on a pointer type *FooBarDef.
48+
// is declared on the type FooBarDef.
4949
//
5050
func (f FooBarDef) Render() r.Element {
5151

0 commit comments

Comments
 (0)