spec: fixed various example code snippets
spec: fixed various example code snippets

Per suggestions by Peter Olsen (https://github.com/pto).

Fixes #11964.

Change-Id: Iae261ac14f75abf848f5601f59d7fe6e95b6805a
Reviewed-on: https://go-review.googlesource.com/13006
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

Endika/go,xujianhai/go,Pulgafree/go,goodlang/good,lihuanghai/go,undergrowthlinear/go,zcwfeng/go,springning/go,albertjin/golang-go,yasarkunduz/go,jefby/go,vishsingh/go,roth1002/go,kim-racktop/go,jefby/go,jmptrader/go,yuhengye/go,momchil-velikov/go,zouchao2010/go,willjunspecial/go,goodlang/good,parkdy/go,mikekap/go,famorted/go,qskycolor/go,vanloswang/go,slavau/go,CarterTsai/go,fjballest/golang,jonathanmarvens/go,malvira/go,vsekhar/elastic-go,4ad/go,mgyenik/go,goodlang/good,CarterTsai/go,jonahglover/go,sosop/go,rentongzhang/go,skatsuta/go,jdhenke/go,mgyenik/go,Young55555/go,codestation/go,samanalysis/go,wangfakang/go-1,kakuhiroshi/go,momchil-velikov/go,greyhwndz/go,Pulgafree/go,binarycrusader/go,codestation/go,ifagnosticism/go,josharian/go,kim-racktop/go,WIZARD-CXY/go,ImJasonH/go,cloudflare/go,xujianhai/go,beealone/go,theass/go,ericsnowcurrently/go,jonahglover/go,leeric92/go,gdey/go,NichoZhang/go,Stan-Lin-/go,arschles/go-1,snowsnail/go,mwhudson/go,Samurais/go,Young55555/go,suncycheng/go,uileyar/go,polyverse-security/go,NichoZhang/go,Young55555/go,willjunspecial/go,linux-on-ibm-z/go,skatsuta/go,stormltf/go,jasonxiong/go,zcwfeng/go,cookerzhu/go,jdhenke/go,constantine001/go,cloudflare/go,jacobhaven/go,constantine001/go,g522342435/go,codestation/go,cookerzhu/go,jonathanmarvens/go,shines77/go,linux-on-ibm-z/go,myPublicGit/go,sinuos/go,jacobsa/go,constantine001/go,NunoEdgarGub1/go,danycoro/go,deft-code/go,GeorgiCodes/go,skatsuta/go,yasarkunduz/go,jonasi/go,sndnvaps/go,Samurais/go,jacobsa/go,slavau/go,vanloswang/go,snowsnail/go,golang/go,ericsnowcurrently/go,constantine001/go,kakuhiroshi/go,theif519/go,greyhwndz/go,JioCloud/go,vsdutka/go,theass/go,zouchao2010/go,zcwfeng/go,CodyGuo/go,akutz/go,jameskumar/go,Jordanzuo/go,beealone/go,andrewchambers/go,Samurais/go,nawawi/go,mwhudson/go,albertjin/golang-go,ichu501/go,sosop/go,roth1002/go,zcwfeng/go,joshsammut/go,greyhwndz/go,Badredapple/go,g522342435/go,ObjectiveJoe/go,jameskumar/go,yasarkunduz/go,jacobxk/go,shines77/go,kim-racktop/go,derekmarcotte/go,shines77/go,likesea/go,mbrukman/go,ganboing/go-esx,baiyunping333/go,Jordanzuo/go,jonahglover/go,ganboing/go-esx,deft-code/go,willjunspecial/go,lihuanghai/go,miolini/go,AALEKH/go,honsiorovskyi/go,vsdutka/go,Cofyc/go,donnel6809/go,b54898533/go,mdp/go,suncycheng/go,ifagnosticism/go,arschles/go-1,mdp/go,devpadawan/go,myPublicGit/go,danielsoro/go,Charlesdong/go-1,zcwfeng/go,AALEKH/go,4ad/go,zhangg/go,rachtsingh/gogojuice,ImJasonH/go,malvira/go,JioCloud/go,vanloswang/go,deft-code/go,sndnvaps/go,undergrowthlinear/go,cloudflare/go,sinuos/go,samanalysis/go,goodlang/good,Badredapple/go,golang/go,dterei/go,uileyar/go,XuYunnan/go,vishsingh/go,parkdy/go,wangfakang/go-1,golang/go,likesea/go,CarterTsai/go,jasonxiong/go,honsiorovskyi/go,arschles/golang-go,baiyunping333/go,cainiaocome/go,jonathanmarvens/go,alash3al/go,wangfakang/go-1,ErikDubbelboer/go,fjballest/golang,stormltf/go,CodyGuo/go,XuYunnan/go,albertjin/golang-go,monetate/go,wangfakang/go-1,jacobxk/go,XuYunnan/go,xujianhai/go,g522342435/go,beealone/go,mdp/go,lihuanghai/go,sndnvaps/go,gdey/go,greyhwndz/go,arschles/go-1,fjballest/golang,skatsuta/go,jacobxk/go,polyverse-security/go,xiaobodu/go,cyberroadie/go,malvira/go,yasarkunduz/go,snowsnail/go,chinanjjohn2012/go,leeric92/go,myPublicGit/go,jefby/go,4ad/go,arschles/golang-go,josharian/go,Charlesdong/go-1,dpatel06/go,Pulgafree/go,beealone/go,jonathanmarvens/go,theass/go,ErikDubbelboer/go,dpatel06/go,likesea/go,xiuzhifu/go,nawawi/go,vsdutka/go,derekmarcotte/go,skatsuta/go,joshsammut/go,mgyenik/go,mbrukman/go,suncycheng/go,mdp/go,ifagnosticism/go,leeric92/go,odeke-em/go,jonathanmarvens/go,nawawi/go,sndnvaps/go,NunoEdgarGub1/go,jacobxk/go,dafyddcrosby/go,yuhengye/go,vishsingh/go,jasonxiong/go,sinuos/go,CarterTsai/go,NunoEdgarGub1/go,mikekap/go,chinanjjohn2012/go,jdhenke/go,ImJasonH/go,slavau/go,binarycrusader/go,kevinc0825/go,ganboing/go-esx,ichu501/go,yangzhongj/go,myPublicGit/go,AALEKH/go,CarterTsai/go,sndnvaps/go,rachtsingh/gogojuice,honsiorovskyi/go,skatsuta/go,lihuanghai/go,WIZARD-CXY/go,alash3al/go,danielsoro/go,deft-code/go,cyberroadie/go,malvira/go,Badredapple/go,ichu501/go,josharian/go,nakedgc/go,Charlesdong/go-1,jacobsa/go,vishsingh/go,akutz/go,myPublicGit/go,Stan-Lin-/go,parkdy/go,zcwfeng/go,cyberroadie/go,dafyddcrosby/go,AALEKH/go,b54898533/go,ericsnowcurrently/go,kim-racktop/go,b54898533/go,Stan-Lin-/go,cookerzhu/go,chinanjjohn2012/go,greyhwndz/go,xiaobodu/go,sndnvaps/go,mwhudson/go,mwhudson/go,ericsnowcurrently/go,famorted/go,monetate/go,cainiaocome/go,sndnvaps/go,AALEKH/go,cookerzhu/go,zouchao2010/go,sinuos/go,Pulgafree/go,josharian/go,nakedgc/go,b54898533/go,lihuanghai/go,josharian/go,jameskumar/go,theif519/go,Young55555/go,donnel6809/go,suncycheng/go,jacobsa/go,jonahglover/go,polyverse-security/go,mbrukman/go,beealone/go,ImJasonH/go,chinanjjohn2012/go,jonasi/go,jdeng/go,cainiaocome/go,yasarkunduz/go,dafyddcrosby/go,polyverse-security/go,AALEKH/go,4ad/go,XuYunnan/go,baiyunping333/go,zouchao2010/go,kakuhiroshi/go,jonasi/go,constantine001/go,GeorgiCodes/go,honsiorovskyi/go,mbrukman/go,b54898533/go,parkdy/go,slavau/go,jonasi/go,yuhengye/go,vsdutka/go,arschles/golang-go,kevinc0825/go,mwhudson/go,jdhenke/go,ObjectiveJoe/go,theif519/go,danielsoro/go,jameskumar/go,arschles/golang-go,alex-zhang/go,josharian/go,derekmarcotte/go,NichoZhang/go,famorted/go,vsekhar/elastic-go,ichu501/go,ErikDubbelboer/go,odeke-em/go,snowsnail/go,mikekap/go,Young55555/go,codestation/go,sosop/go,slavau/go,akutz/go,ObjectiveJoe/go,CAFxX/go,lihuanghai/go,4ad/go,skotti/go,likesea/go,leeric92/go,Jordanzuo/go,linux-on-ibm-z/go,Charlesdong/go-1,jdeng/go,malvira/go,donnel6809/go,monetate/go,binarycrusader/go,rachtsingh/gogojuice,arschles/golang-go,jacobxk/go,mgyenik/go,famorted/go,miolini/go,goodlang/good,qskycolor/go,roth1002/go,zhangg/go,ImJasonH/go,odeke-em/go,yangzhongj/go,ErikDubbelboer/go,JioCloud/go,arschles/golang-go,mikekap/go,mgyenik/go,ichu501/go,Charlesdong/go-1,Stan-Lin-/go,miolini/go,ifagnosticism/go,rachtsingh/gogojuice,skotti/go,Samurais/go,xujianhai/go,sosop/go,CodyGuo/go,ichu501/go,Jordanzuo/go,alex-zhang/go,andrewchambers/go,greyhwndz/go,theif519/go,zhangg/go,mbrukman/go,CodyGuo/go,alex-zhang/go,dterei/go,shines77/go,josharian/go,golang/go,odeke-em/go,nakedgc/go,goodlang/good,momchil-velikov/go,GeorgiCodes/go,WIZARD-CXY/go,arschles/go-1,Badredapple/go,jacobxk/go,Cofyc/go,ericsnowcurrently/go,Badredapple/go,donnel6809/go,snowsnail/go,monetate/go,uileyar/go,dafyddcrosby/go,jacobhaven/go,GeorgiCodes/go,cyberroadie/go,theass/go,cyberroadie/go,jefby/go,vsdutka/go,malvira/go,4ad/go,WIZARD-CXY/go,dterei/go,Pulgafree/go,XuYunnan/go,sinuos/go,jdeng/go,kim-racktop/go,devpadawan/go,jefby/go,roth1002/go,ErikDubbelboer/go,ganboing/go-esx,roth1002/go,yuhengye/go,undergrowthlinear/go,ericsnowcurrently/go,golang/go,NunoEdgarGub1/go,wangfakang/go-1,chinanjjohn2012/go,binarycrusader/go,likesea/go,AALEKH/go,alash3al/go,mwhudson/go,Pulgafree/go,jacobsa/go,leeric92/go,Young55555/go,albertjin/golang-go,jameskumar/go,ObjectiveJoe/go,mikekap/go,jasonxiong/go,akutz/go,donnel6809/go,jonahglover/go,ifagnosticism/go,golang/go,alash3al/go,beealone/go,alex-zhang/go,NunoEdgarGub1/go,ganboing/go-esx,danielsoro/go,ganboing/go-esx,ganboing/go-esx,WIZARD-CXY/go,roth1002/go,deft-code/go,jonathanmarvens/go,willjunspecial/go,likesea/go,skatsuta/go,shines77/go,CodyGuo/go,yangzhongj/go,JioCloud/go,jacobsa/go,jasonxiong/go,alex-zhang/go,xiuzhifu/go,famorted/go,4ad/go,zouchao2010/go,malvira/go,parkdy/go,Endika/go,monetate/go,vanloswang/go,vsekhar/elastic-go,kevinc0825/go,andrewchambers/go,vsdutka/go,arschles/go-1,danycoro/go,ObjectiveJoe/go,vanloswang/go,Cofyc/go,xujianhai/go,JioCloud/go,snowsnail/go,beealone/go,gdey/go,zhangg/go,danycoro/go,baiyunping333/go,sosop/go,kakuhiroshi/go,jmptrader/go,qskycolor/go,nakedgc/go,linux-on-ibm-z/go,myPublicGit/go,cainiaocome/go,momchil-velikov/go,jacobxk/go,jameskumar/go,nakedgc/go,vanloswang/go,Cofyc/go,devpadawan/go,dterei/go,shines77/go,zhangg/go,kakuhiroshi/go,mwhudson/go,arschles/go-1,greyhwndz/go,jmptrader/go,xiuzhifu/go,yuhengye/go,vsekhar/elastic-go,nawawi/go,qskycolor/go,CAFxX/go,cainiaocome/go,Endika/go,monetate/go,jonathanmarvens/go,undergrowthlinear/go,skotti/go,cainiaocome/go,g522342435/go,jameskumar/go,cookerzhu/go,donnel6809/go,nawawi/go,GeorgiCodes/go,b54898533/go,vanloswang/go,CAFxX/go,jdhenke/go,cookerzhu/go,uileyar/go,joshsammut/go,codestation/go,nakedgc/go,sosop/go,CiscoCloud/go,Charlesdong/go-1,CiscoCloud/go,cyberroadie/go,vishsingh/go,devpadawan/go,vsdutka/go,dafyddcrosby/go,danycoro/go,devpadawan/go,jonasi/go,chinanjjohn2012/go,derekmarcotte/go,NichoZhang/go,Endika/go,jonasi/go,Endika/go,alash3al/go,albertjin/golang-go,devpadawan/go,akutz/go,zhangg/go,Stan-Lin-/go,mbrukman/go,qskycolor/go,goodlang/good,myPublicGit/go,CiscoCloud/go,vsekhar/elastic-go,andrewchambers/go,kim-racktop/go,rentongzhang/go,odeke-em/go,CarterTsai/go,CAFxX/go,miolini/go,deft-code/go,gdey/go,dterei/go,willjunspecial/go,chinanjjohn2012/go,nawawi/go,linux-on-ibm-z/go,jonasi/go,cloudflare/go,jdhenke/go,springning/go,Pulgafree/go,yasarkunduz/go,momchil-velikov/go,alex-zhang/go,danycoro/go,JioCloud/go,xiuzhifu/go,suncycheng/go,Pulgafree/go,parkdy/go,vsekhar/elastic-go,baiyunping333/go,famorted/go,rentongzhang/go,jacobhaven/go,ericsnowcurrently/go,odeke-em/go,dterei/go,cloudflare/go,joshsammut/go,GeorgiCodes/go,dterei/go,uileyar/go,g522342435/go,cainiaocome/go,linux-on-ibm-z/go,Samurais/go,cyberroadie/go,honsiorovskyi/go,cainiaocome/go,CiscoCloud/go,xiuzhifu/go,vsdutka/go,dterei/go,stormltf/go,kakuhiroshi/go,leeric92/go,CodyGuo/go,jdeng/go,stormltf/go,jmptrader/go,linux-on-ibm-z/go,josharian/go,fjballest/golang,NichoZhang/go,momchil-velikov/go,snowsnail/go,samanalysis/go,roth1002/go,CiscoCloud/go,akutz/go,binarycrusader/go,gdey/go,ichu501/go,fjballest/golang,derekmarcotte/go,jacobhaven/go,sosop/go,g522342435/go,WIZARD-CXY/go,jacobxk/go,dafyddcrosby/go,theass/go,g522342435/go,jdhenke/go,ericsnowcurrently/go,Endika/go,CodyGuo/go,xiaobodu/go,cookerzhu/go,Cofyc/go,akutz/go,ErikDubbelboer/go,xiaobodu/go,vishsingh/go,polyverse-security/go,odeke-em/go,NunoEdgarGub1/go,jonathanmarvens/go,dpatel06/go,sinuos/go,qskycolor/go,andrewchambers/go,chinanjjohn2012/go,nawawi/go,springning/go,Badredapple/go,jmptrader/go,dpatel06/go,rentongzhang/go,goodlang/good,CiscoCloud/go,dpatel06/go,honsiorovskyi/go,danielsoro/go,jdeng/go,slavau/go,gdey/go,sinuos/go,miolini/go,NunoEdgarGub1/go,kevinc0825/go,fjballest/golang,NichoZhang/go,theif519/go,zouchao2010/go,xujianhai/go,alex-zhang/go,cloudflare/go,g522342435/go,samanalysis/go,mdp/go,famorted/go,jacobhaven/go,cookerzhu/go,Charlesdong/go-1,rentongzhang/go,codestation/go,vsekhar/elastic-go,zouchao2010/go,skotti/go,mdp/go,rachtsingh/gogojuice,joshsammut/go,ImJasonH/go,JioCloud/go,albertjin/golang-go,xujianhai/go,Cofyc/go,ImJasonH/go,snowsnail/go,stormltf/go,polyverse-security/go,lihuanghai/go,skotti/go,qskycolor/go,baiyunping333/go,Samurais/go,alex-zhang/go,famorted/go,xiuzhifu/go,suncycheng/go,samanalysis/go,deft-code/go,CAFxX/go,donnel6809/go,nakedgc/go,akutz/go,Samurais/go,alash3al/go,yangzhongj/go,jonahglover/go,mwhudson/go,mgyenik/go,gdey/go,shines77/go,vishsingh/go,CAFxX/go,jameskumar/go,odeke-em/go,yangzhongj/go,ImJasonH/go,constantine001/go,mikekap/go,andrewchambers/go,greyhwndz/go,Badredapple/go,binarycrusader/go,stormltf/go,danycoro/go,lihuanghai/go,albertjin/golang-go,suncycheng/go,vishsingh/go,ObjectiveJoe/go,undergrowthlinear/go,yasarkunduz/go,yasarkunduz/go,xiuzhifu/go,b54898533/go,Cofyc/go,yangzhongj/go,xujianhai/go,jdeng/go,mikekap/go,jmptrader/go,dpatel06/go,jdeng/go,wangfakang/go-1,vanloswang/go,willjunspecial/go,xiaobodu/go,malvira/go,joshsammut/go,NunoEdgarGub1/go,Jordanzuo/go,CiscoCloud/go,NichoZhang/go,theif519/go,baiyunping333/go,uileyar/go,stormltf/go,rachtsingh/gogojuice,kevinc0825/go,jacobhaven/go,jmptrader/go,linux-on-ibm-z/go,slavau/go,joshsammut/go,kakuhiroshi/go,theass/go,devpadawan/go,polyverse-security/go,xiaobodu/go,yangzhongj/go,kim-racktop/go,jasonxiong/go,undergrowthlinear/go,jacobhaven/go,roth1002/go,danielsoro/go,Charlesdong/go-1,zcwfeng/go,yuhengye/go,jonasi/go,devpadawan/go,xiaobodu/go,XuYunnan/go,yuhengye/go,nakedgc/go,jmptrader/go,skotti/go,b54898533/go,jonahglover/go,ifagnosticism/go,parkdy/go,zcwfeng/go,ObjectiveJoe/go,springning/go,binarycrusader/go,suncycheng/go,mdp/go,codestation/go,monetate/go,mbrukman/go,theass/go,sndnvaps/go,derekmarcotte/go,danielsoro/go,CarterTsai/go,WIZARD-CXY/go,derekmarcotte/go,honsiorovskyi/go,jefby/go,fjballest/golang,stormltf/go,jdeng/go,vsekhar/elastic-go,albertjin/golang-go,springning/go,golang/go,ganboing/go-esx,Badredapple/go,qskycolor/go,parkdy/go,myPublicGit/go,CodyGuo/go,uileyar/go,uileyar/go,springning/go,cyberroadie/go,ifagnosticism/go,kevinc0825/go,likesea/go,4ad/go,samanalysis/go,springning/go,skotti/go,XuYunnan/go,ErikDubbelboer/go,honsiorovskyi/go,christopher-henderson/Go,momchil-velikov/go,arschles/go-1,ichu501/go,alash3al/go,GeorgiCodes/go,cloudflare/go,mgyenik/go,CAFxX/go,kevinc0825/go,sinuos/go,arschles/golang-go,binarycrusader/go,AALEKH/go,samanalysis/go,Cofyc/go,momchil-velikov/go,codestation/go,ObjectiveJoe/go,Stan-Lin-/go,skatsuta/go,cloudflare/go,leeric92/go,andrewchambers/go,polyverse-security/go,jefby/go,samanalysis/go,XuYunnan/go,arschles/golang-go,wangfakang/go-1,kakuhiroshi/go,dafyddcrosby/go,danycoro/go,slavau/go,beealone/go,Young55555/go,willjunspecial/go,springning/go,zhangg/go,shines77/go,Endika/go,arschles/go-1,Stan-Lin-/go,miolini/go,mbrukman/go,xiaobodu/go,jonahglover/go,Endika/go,nawawi/go,golang/go,andrewchambers/go,JioCloud/go,jasonxiong/go,donnel6809/go,yangzhongj/go,xiuzhifu/go,baiyunping333/go,Jordanzuo/go,Young55555/go,rentongzhang/go,willjunspecial/go,miolini/go,jefby/go,monetate/go,jacobhaven/go,joshsammut/go,skotti/go,jacobsa/go,Samurais/go,ifagnosticism/go,constantine001/go,sosop/go,danycoro/go,CiscoCloud/go,jasonxiong/go,theif519/go,deft-code/go,derekmarcotte/go,WIZARD-CXY/go,miolini/go,dpatel06/go,zhangg/go,Stan-Lin-/go,Jordanzuo/go,GeorgiCodes/go,mikekap/go,rachtsingh/gogojuice,dpatel06/go,dafyddcrosby/go,leeric92/go,rentongzhang/go,CAFxX/go,NichoZhang/go,undergrowthlinear/go,gdey/go,ErikDubbelboer/go,danielsoro/go,jdhenke/go,kim-racktop/go,likesea/go,kevinc0825/go,mgyenik/go,rentongzhang/go,yuhengye/go,rachtsingh/gogojuice,Jordanzuo/go,mdp/go,theass/go,jacobsa/go,zouchao2010/go,alash3al/go,CarterTsai/go,constantine001/go,wangfakang/go-1,undergrowthlinear/go,theif519/go,fjballest/golang