Skip to content
Permalink
Browse files

Fix code block - allow null in return type

  • Loading branch information
bocharsky-bw committed Jun 18, 2019
1 parent d1f15eb commit 7313e5e275cdcf8181555a41b29413c0cb0c3aea
Showing with 1 addition and 1 deletion.
  1. +1 −1 sfcasts/ep1-basics/property-filter.md
@@ -34,7 +34,7 @@ below called `public function getShortDescription()`. This will return a nullab
string, in case description isn't set yet. Let's immediately add this to a
group - `cheese_listing:read` so that it shows up in the API.

[[[ code('5bacd98cdf') ]]]
[[[ code('aa0f8ed1b0') ]]]

Inside, if the `description` is already less than 40 characters, just return it.
Otherwise, return a `substr` of the description - get the first 40 characters, then

0 comments on commit 7313e5e

Please sign in to comment.
You can’t perform that action at this time.