]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix SetCgoTraceback doc indentation
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Apr 2016 21:56:13 +0000 (16:56 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 27 Apr 2016 22:12:01 +0000 (22:12 +0000)
It wasn't rendering as HTML nicely.

Change-Id: I5408ec22932a05e85c210c0faa434bd19dce5650
Reviewed-on: https://go-review.googlesource.com/22532
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/traceback.go

index 16b9278641cd6aa43b1664ca576e6dd9271e3c37..529aa1eddb2113c616e7183ce0ef0f3637f7a455 100644 (file)
@@ -771,15 +771,15 @@ func isSystemGoroutine(gp *g) bool {
 // The context function will be called with a single argument, a
 // pointer to a struct:
 //
-// struct {
-//     Context uintptr
-// }
+//     struct {
+//             Context uintptr
+//     }
 //
 // In C syntax, this struct will be
 //
-// struct {
-//   uintptr_t Context;
-// };
+//     struct {
+//             uintptr_t Context;
+//     };
 //
 // If the Context field is 0, the context function is being called to
 // record the current traceback context. It should record whatever
@@ -803,19 +803,19 @@ func isSystemGoroutine(gp *g) bool {
 // The traceback function will be called with a single argument, a
 // pointer to a struct:
 //
-// struct {
-//     Context uintptr
-//     Buf     *uintptr
-//     Max     uintptr
-// }
+//     struct {
+//             Context uintptr
+//             Buf     *uintptr
+//             Max     uintptr
+//     }
 //
 // In C syntax, this struct will be
 //
-// struct {
-//   uintptr_t  Context;
-//   uintptr_t* Buf;
-//   uintptr_t  Max;
-// };
+//     struct {
+//             uintptr_t  Context;
+//             uintptr_t* Buf;
+//             uintptr_t  Max;
+//     };
 //
 // The Context field will be zero to gather a traceback from the
 // current program execution point. In this case, the traceback
@@ -847,27 +847,27 @@ func isSystemGoroutine(gp *g) bool {
 // The symbolizer function will be called with a single argument, a
 // pointer to a struct:
 //
-// struct {
-//     PC      uintptr // program counter to fetch information for
-//     File    *byte   // file name (NUL terminated)
-//     Lineno  uintptr // line number
-//     Func    *byte   // function name (NUL terminated)
-//     Entry   uintptr // function entry point
-//     More    uintptr // set non-zero if more info for this PC
-//     Data    uintptr // unused by runtime, available for function
-// }
+//     struct {
+//             PC      uintptr // program counter to fetch information for
+//             File    *byte   // file name (NUL terminated)
+//             Lineno  uintptr // line number
+//             Func    *byte   // function name (NUL terminated)
+//             Entry   uintptr // function entry point
+//             More    uintptr // set non-zero if more info for this PC
+//             Data    uintptr // unused by runtime, available for function
+//     }
 //
 // In C syntax, this struct will be
 //
-// struct {
-//   uintptr_t PC;
-//   char*     File;
-//   uintptr_t Lineno;
-//   char*     Func;
-//   uintptr_t Entry;
-//   uintptr_t More;
-//   uintptr_t Data;
-// };
+//     struct {
+//             uintptr_t PC;
+//             char*     File;
+//             uintptr_t Lineno;
+//             char*     Func;
+//             uintptr_t Entry;
+//             uintptr_t More;
+//             uintptr_t Data;
+//     };
 //
 // The PC field will be a value returned by a call to the traceback
 // function.