add error case in doc for Index. simplify code slightly.
add error case in doc for Index. simplify code slightly.

R=rsc
DELTA=5  (1 added, 0 deleted, 4 changed)
OCL=27148
CL=27151

bryanxu/go-zh,webfd/go-zh,webfd/go-zh,Triskite/willstone-goclone,bryanxu/go-zh,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,npe9/noahevans-go9,webfd/go-zh,webfd/go-zh,npe9/noahevans-go9,sanjosh/sanjos100-tipc,Triskite/willstone-goclone,Triskite/willstone-goclone,rdp/rogerpack2005-golang,mhennings/marcohennings-go,rflanagan/reginaldflanagan-project1,d0f/go-zh,bryanxu/go-zh,Triskite/willstone-goclone,bryanxu/go-zh,mhennings/marcohennings-go,d0f/go-zh,d0f/go-zh,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,sanjosh/sanjos100-tipc,scirelli/scirelli-go,scirelli/scirelli-go,webfd/go-zh,Triskite/willstone-goclone,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,rflanagan/reginaldflanagan-project1,d0f/go-zh,Triskite/willstone-goclone,rdp/rogerpack2005-golang,mhennings/marcohennings-go,glycerine/jeaten-go-arrayof-structof,mhennings/marcohennings-go,sanjosh/sanjos100-tipc,glycerine/jeaten-go-arrayof-structof,npe9/noahevans-go9,glycerine/jeaten-go-arrayof-structof,rflanagan/reginaldflanagan-project1,bryanxu/go-zh,bryanxu/go-zh,mhennings/marcohennings-go,rdp/rogerpack2005-golang,scirelli/scirelli-go,scirelli/scirelli-go,mhennings/marcohennings-go,d0f/go-zh,bryanxu/go-zh,npe9/noahevans-go9,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,glycerine/jeaten-go-arrayof-structof,glycerine/jeaten-go-arrayof-structof,scirelli/scirelli-go,npe9/noahevans-go9,Triskite/willstone-goclone,bryanxu/go-zh,scirelli/scirelli-go,sanjosh/sanjos100-tipc,webfd/go-zh,rflanagan/reginaldflanagan-project1,rflanagan/reginaldflanagan-project1,d0f/go-zh,scirelli/scirelli-go,d0f/go-zh,webfd/go-zh,rdp/rogerpack2005-golang,rflanagan/reginaldflanagan-project1,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,scirelli/scirelli-go,glycerine/jeaten-go-arrayof-structof,Triskite/willstone-goclone,sanjosh/sanjos100-tipc,webfd/go-zh,d0f/go-zh,mhennings/marcohennings-go,npe9/noahevans-go9,npe9/noahevans-go9,rdp/rogerpack2005-golang,sanjosh/sanjos100-tipc,npe9/noahevans-go9