package main

import "fmt"

func Example() {

	capitals := map[string]string{
		"NSW": "Sydney",
		"VIC": "Melbourne",
		"TAS": "Hobart",
		"WA": "Perth",
		"QLD": "Brisbane",
		"SA": "Adelaide",
	}

	for _, state := range [2]string{"NSW", "AL"} {
		if capital, known := capitals[state]; known {
			fmt.Printf("The capital of %s is %s\n", state, capital)
		} else {
			fmt.Printf("I don't know the capital of %s\n", state)
		}
	}
	// Output:
	// The capital of NSW is Sydney
	// I don't know the capital of AL
}

package main

import "fmt"

func Example() {

	capitals := map[string]string{
		"NSW": "Sydney",
		"VIC":
		"Melbourne",
		"TAS": "Hobart",
		"WA": "Perth",
		"QLD": "Brisbane",
		"SA": "Adelaide",
	}

	for _, state := range [2]string{"NSW", "AL"} {
		if capital, known := capitals[state]; known {
			fmt.Printf("The capital of %s is %s\n", state, capital)
		} else {
			fmt.Printf("I don't know the capital of %s\n", state)
		}
	}
	// Output:
	// The capital of NSW is Sydney
	// I don't know the capital of AL
}

--- 
+++ 
@@ -6,8 +6,7 @@
 
 	capitals := map[string]string{
 		"NSW": "Sydney",
-		"VIC":
-		"Melbourne",
+		"VIC": "Melbourne",
 		"TAS": "Hobart",
 		"WA": "Perth",
 		"QLD": "Brisbane",
Fix an odd formatting issue
