insert space after comment character in cmd folder

This commit is contained in:
Nagarjun
2016-01-05 12:46:18 +05:30
parent 9264340338
commit c98364e79b
8 changed files with 21 additions and 21 deletions

View File

@@ -14,12 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
//This command checks if the hyperlinks in files are valid. It checks the files
//with 'fileSuffix' in 'rootDir' for URLs that match 'prefix'. It trims the
//'prefix' from the URL, uses what's left as the relative path to repoRoot to
//verify if the link is valid. For example:
//$ linkcheck --root-dir=${TYPEROOT} --repo-root=${KUBE_ROOT} \
// --file-suffix=types.go --prefix=http://releases.k8s.io/HEAD
// This command checks if the hyperlinks in files are valid. It checks the files
// with 'fileSuffix' in 'rootDir' for URLs that match 'prefix'. It trims the
// 'prefix' from the URL, uses what's left as the relative path to repoRoot to
// verify if the link is valid. For example:
// $ linkcheck --root-dir=${TYPEROOT} --repo-root=${KUBE_ROOT} \
// --file-suffix=types.go --prefix=http://releases.k8s.io/HEAD
package main
@@ -56,7 +56,7 @@ func newWalkFunc(invalidLink *bool) filepath.WalkFunc {
foundInvalid := false
matches := httpRE.FindAllSubmatch(fileBytes, -1)
for _, match := range matches {
//match[1] should look like docs/devel/api-conventions.md
// match[1] should look like docs/devel/api-conventions.md
if _, err := os.Stat(path.Join(*repoRoot, string(match[1]))); err != nil {
fmt.Fprintf(os.Stderr, "Link is not valid: %s\n", string(match[0]))
foundInvalid = true