diff --git a/docs/_docs/layout2-layoutspec-types.md b/docs/_docs/layout2-layoutspec-types.md index 0c9be6b2d3..e816ab3ca7 100755 --- a/docs/_docs/layout2-layoutspec-types.md +++ b/docs/_docs/layout2-layoutspec-types.md @@ -154,7 +154,7 @@ If you set `INFINITY` as a value in the `UIEdgeInsets`, the inset spec will just { ... UIEdgeInsets *insets = UIEdgeInsetsMake(10, 10, 10, 10); - ASInsetLayoutSpec *headerWithInset = insetLayoutSpecWithInsets:insets child:textNode]; + ASInsetLayoutSpec *headerWithInset = [ASInsetLayoutSpec insetLayoutSpecWithInsets:insets child:textNode]; ... }