Opened 4 years ago

Closed 4 years ago

#279 closed defect (fixed)

Wrong example in ql-guide

Reported by: pcampalani Owned by: pbaumann
Priority: trivial Milestone: 8.4
Component: manuals_and_examples Version: 8.3
Keywords: struct example comments Cc:
Complexity:

Description

In Sec. 4.3.4 "Comments in Type Definitions", at p.23 the syntax of the proposed example is wrong. Should be:

struct RGBPixel
{ char red,   // red channel of color image
       green, // green channel of color image
       blue;  // blue channel of color image
};            // 3 x 8bit color pixels

instead of:

typedef struct
{ char red,   // red channel of color image
       green, // green channel of color image
       blue;  // blue channel of color image
} RGBPixel;   // 3 x 8bit color pixels

Change History (2)

comment:1 Changed 4 years ago by abeccati

  • Milestone set to 8.4

comment:2 Changed 4 years ago by pbaumann

  • Resolution set to fixed
  • Status changed from new to closed

fixed in v8.4.

Note: See TracTickets for help on using tickets.