Index: experimental/webtry/webtry.go |
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go |
index 4c0e5b0a281349ac12f1ce542bc4ea5997912eeb..73b1ae598af110ad94728223d5e9ab5036b966c1 100644 |
--- a/experimental/webtry/webtry.go |
+++ b/experimental/webtry/webtry.go |
@@ -437,7 +437,7 @@ func workspaceHandler(w http.ResponseWriter, r *http.Request) { |
if len(tries) == 0 { |
code = DEFAULT_SAMPLE |
} else { |
- code = getCode(tries[len(tries)-1].Hash) |
+ code = getCode(tries[0].Hash) |
} |
if err := workspaceTemplate.Execute(w, Workspace{Tries: tries, Code: code, Name: name}); err != nil { |
log.Printf("ERROR: Failed to expand template: %q\n", err) |