mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-24 18:36:54 +08:00
Re-arranging some words
This commit is contained in:
parent
77c6b74df0
commit
315403a05a
1 changed files with 1 additions and 1 deletions
|
|
@ -1028,7 +1028,7 @@ When using named result parameters, we must recall that each parameter is initia
|
||||||
|
|
||||||
???+ info "TL;DR"
|
???+ info "TL;DR"
|
||||||
|
|
||||||
When returning an interface, be cautious about returning not a nil pointer but an explicit nil value. Otherwise, unintended consequences may result because the caller will receive a non-nil value.
|
When returning an interface, be cautious about not returning a nil pointer but an explicit nil value. Otherwise, unintended consequences may occur and the caller will receive a non-nil value.
|
||||||
|
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue