title: The zero value of a slice is not nil
body: <p>I was following the example <a href="https://tour.golang.org/moretypes/10" rel="noreferrer">https://tour.golang.org/moretypes/10</a>
  I modified the code expecting to get the same result. I did not. Is this a bug, or a documentation error? The tour states </p>
  
  <blockquote>
    <p>A nil slice has a length and capacity of 0.</p>
  </blockquote>
  
  <p>My y variable has a length and capacity of 0.</p>
  
  <pre><code>package main
  
  import "fmt"
  
  func myPrint(z []int) {
      fmt.Println(z, len(z), cap(z))
      if z == nil {
          fmt.Println("nil!")
      }
  }
  
  func main() {
      var z  []int 
      y := []int {}
      myPrint(z)
      myPrint(y)
  }
  </code></pre>
  
  <p>Here is my output.</p>
  
  <pre><code>[] 0 0
  nil!
  [] 0 0
  </code></pre>
  
  <p>I was expecting a second "nil"~ Why didn't I get it?</p>