aboutsummaryrefslogtreecommitdiff
path: root/content/examples.article
diff options
context:
space:
mode:
authorAgniva De Sarker <agnivade@yahoo.co.in>2018-04-14 00:23:09 +0530
committerAndrew Bonventre <andybons@golang.org>2018-04-13 19:50:50 +0000
commit7edc962a942e4a9d5e06dde79299f7fc5605f000 (patch)
treed05d3cbb132e60ace21a28184833cc4b31ef59c3 /content/examples.article
parentefc7460c787535c46feadda9f7c395f16a615306 (diff)
content: update all golang.org links to https
Ran sed -i 's/\[\[http:\/\/golang.org/\[\[https:\/\/golang.org/g' *.article Change-Id: I88acc5104e1a3fc5e9a1cf11b600b657202d8997 Reviewed-on: https://go-review.googlesource.com/106955 Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Andrew Bonventre <andybons@golang.org>
Diffstat (limited to 'content/examples.article')
-rw-r--r--content/examples.article4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/examples.article b/content/examples.article
index aa0dd28..a8d5aba 100644
--- a/content/examples.article
+++ b/content/examples.article
@@ -6,7 +6,7 @@ Andrew Gerrand
* Introduction
-Godoc [[http://golang.org/pkg/testing/#hdr-Examples][examples]] are snippets of
+Godoc [[https://golang.org/pkg/testing/#hdr-Examples][examples]] are snippets of
Go code that are displayed as package documentation and that are verified by
running them as tests.
They can also be run by a user visiting the godoc web page for the package
@@ -16,7 +16,7 @@ Having executable documentation for a package guarantees that the information
will not go out of date as the API changes.
The standard library includes many such examples
-(see the [[http://golang.org/pkg/strings/#Contains][`strings` package]],
+(see the [[https://golang.org/pkg/strings/#Contains][`strings` package]],
for instance).
This article explains how to write your own example functions.